Skip to content

Commit 08d4022

Browse files
committed
github-release: allow resuming failed deployment
The deployment failed because the Discussion could not be opened. Let's first add a guard to avoid re-releasing the GitHub release, before trying to fix that Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8daf046 commit 08d4022

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/actions/github-release/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ runs:
6363
text: "For details, see [this run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id}})."
6464
details-url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id}}"
6565
- name: Download bundle-artifacts (needed to push the tag)
66+
# allow resuming failed deployment
67+
if: inputs.tag-name != 'v2.46.1.windows.1'
6668
uses: actions/download-artifact@v4
6769
with:
6870
name: bundle-artifacts
@@ -81,6 +83,10 @@ runs:
8183
updateRelease
8284
} = require('./github-release')
8385
86+
let release
87+
if ('${{ inputs.tag-name }}' === 'v2.46.1.windows.1') {
88+
release = { id: 175612508 }
89+
} else {
8490
const [ artifactsOwner, artifactsRepo ] = '${{ inputs.artifacts-repository }}'.split('/')
8591
const artifacts = await getGitArtifacts(
8692
console,
@@ -104,7 +110,7 @@ runs:
104110
'${{ inputs.repo }}')
105111
await state.refreshToken()
106112
107-
const release = await createRelease(
113+
release = await createRelease(
108114
console,
109115
state.accessToken,
110116
'${{ inputs.owner }}',
@@ -151,6 +157,7 @@ runs:
151157
discussion_category_name: 'Announcements',
152158
}
153159
)
160+
}
154161
- name: update check-run
155162
if: always()
156163
uses: ./.github/actions/check-run-action

0 commit comments

Comments
 (0)