Skip to content

Commit 295d792

Browse files
committed
github-release: remove v2.46.1 work-around
The deployment of the v2.46.1 release originally did not work. The reason was that the GitForWindowsHelper GitHub App lacked the permissions to create Discussions. This has been fixed in the meantime, the deployment was completed, and now we can remove the work-around that allowed us to resume the failed deployment. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b59f512 commit 295d792

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ 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'
6866
uses: actions/download-artifact@v4
6967
with:
7068
name: bundle-artifacts
@@ -91,12 +89,7 @@ runs:
9189
${{ toJSON(inputs.private-key) }},
9290
'${{ inputs.owner }}',
9391
'${{ inputs.repo }}')
94-
await state.refreshToken()
9592
96-
let release
97-
if ('${{ inputs.tag-name }}' === 'v2.46.1.windows.1') {
98-
release = { id: 175612508 }
99-
} else {
10093
const [ artifactsOwner, artifactsRepo ] = '${{ inputs.artifacts-repository }}'.split('/')
10194
const artifacts = await getGitArtifacts(
10295
console,
@@ -110,7 +103,8 @@ runs:
110103
const sha256sums = sha256sumsFromReleaseNotes(${{ toJSON(inputs.release-notes) }})
111104
await checkSHA256Sums(console, artifacts, sha256sums)
112105
113-
release = await createRelease(
106+
await state.refreshToken()
107+
const release = await createRelease(
114108
console,
115109
state.accessToken,
116110
'${{ inputs.owner }}',
@@ -156,7 +150,6 @@ runs:
156150
make_latest : !isPrerelease,
157151
}
158152
)
159-
}
160153
161154
try {
162155
await state.refreshToken()

0 commit comments

Comments
 (0)