Skip to content

Commit 250635d

Browse files
committed
github-release: move the state initialization
We also need to move the initialization of the `state` variable to be able to use it in the upcoming fix. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 08d4022 commit 250635d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ runs:
8383
updateRelease
8484
} = require('./github-release')
8585
86+
const { initCheckRunState } = require('./check-runs')
87+
const state = await initCheckRunState(
88+
console,
89+
core.setSecret,
90+
${{ inputs.app-id }},
91+
${{ toJSON(inputs.private-key) }},
92+
'${{ inputs.owner }}',
93+
'${{ inputs.repo }}')
94+
await state.refreshToken()
95+
8696
let release
8797
if ('${{ inputs.tag-name }}' === 'v2.46.1.windows.1') {
8898
release = { id: 175612508 }
@@ -100,16 +110,6 @@ runs:
100110
const sha256sums = sha256sumsFromReleaseNotes(${{ toJSON(inputs.release-notes) }})
101111
await checkSHA256Sums(console, artifacts, sha256sums)
102112
103-
const { initCheckRunState } = require('./check-runs')
104-
const state = await initCheckRunState(
105-
console,
106-
core.setSecret,
107-
${{ inputs.app-id }},
108-
${{ toJSON(inputs.private-key) }},
109-
'${{ inputs.owner }}',
110-
'${{ inputs.repo }}')
111-
await state.refreshToken()
112-
113113
release = await createRelease(
114114
console,
115115
state.accessToken,

0 commit comments

Comments
 (0)