[codex] fix Discord release version flag (#2449)
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
17b43960e8
commit
7a3f21e7ca
2 files changed
+6
-6
No files matched your search
@@ -628,7 +628,7 @@ jobs:
|
||||
node scripts/notify-discord-release.ts prerelease \
|
||||
--role-id "$DISCORD_MENTION_ROLE_ID" \
|
||||
--release-name "${{ needs.preflight.outputs.release_name }}" \
|
||||
--version "${{ needs.preflight.outputs.version }}" \
|
||||
--release-version "${{ needs.preflight.outputs.version }}" \
|
||||
--tag "${{ needs.preflight.outputs.tag }}" \
|
||||
--release-url "https://github.com/${{ github.repository }}/releases/tag/${{ needs.preflight.outputs.tag }}"
|
||||
|
||||
@@ -642,6 +642,6 @@ jobs:
|
||||
node scripts/notify-discord-release.ts latest \
|
||||
--role-id "$DISCORD_MENTION_ROLE_ID" \
|
||||
--release-name "${{ needs.preflight.outputs.release_name }}" \
|
||||
--version "${{ needs.preflight.outputs.version }}" \
|
||||
--release-version "${{ needs.preflight.outputs.version }}" \
|
||||
--tag "${{ needs.preflight.outputs.tag }}" \
|
||||
--release-url "https://github.com/${{ github.repository }}/releases/tag/${{ needs.preflight.outputs.tag }}"
|
||||
@@ -173,7 +173,7 @@ export const notifyDiscordReleaseCommand = Command.make(
|
||||
Flag.withSchema(Schema.NonEmptyString),
|
||||
Flag.withDescription("Human-readable release name."),
|
||||
),
|
||||
version: Flag.string("version").pipe(
|
||||
releaseVersion: Flag.string("release-version").pipe(
|
||||
Flag.withSchema(Schema.NonEmptyString),
|
||||
Flag.withDescription("Release version."),
|
||||
),
|
||||
@@ -186,7 +186,7 @@ export const notifyDiscordReleaseCommand = Command.make(
|
||||
Flag.withDescription("Public GitHub release URL."),
|
||||
),
|
||||
},
|
||||
({ target, roleId, releaseName, version, tag, releaseUrl }) =>
|
||||
({ target, roleId, releaseName, releaseVersion, tag, releaseUrl }) =>
|
||||
Effect.gen(function* () {
|
||||
yield* Effect.logInfo("discord release announcement starting").pipe(
|
||||
Effect.annotateLogs({
|
||||
@@ -194,7 +194,7 @@ export const notifyDiscordReleaseCommand = Command.make(
|
||||
roleIdProvided: roleId.length > 0,
|
||||
roleIdLength: roleId.length,
|
||||
releaseName,
|
||||
version,
|
||||
version: releaseVersion,
|
||||
tag,
|
||||
releaseUrl,
|
||||
}),
|
||||
@@ -205,7 +205,7 @@ export const notifyDiscordReleaseCommand = Command.make(
|
||||
target,
|
||||
roleId,
|
||||
releaseName,
|
||||
version,
|
||||
version: releaseVersion,
|
||||
tag,
|
||||
releaseUrl,
|
||||
timestamp: new Date().toISOString(),
|
||||
|
||||
Reference in new issue
Block a user