Skip to content

Commit 161af27

Browse files
committed
Fix deployment step
1 parent 9db9611 commit 161af27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/publish-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ jobs:
178178
npm publish --access public --tag ${{ steps.validate.outputs.tag }} --provenance --no-git-checks
179179
180180
- name: Create GitHub Deployment (in_progress)
181+
id: create_deployment
181182
uses: actions/github-script@v7
182183
env:
183184
VERSION: ${{ steps.validate.outputs.version }}
@@ -215,7 +216,7 @@ jobs:
215216
await github.rest.repos.createDeploymentStatus({
216217
owner,
217218
repo,
218-
deployment_id: Number(core.getInput('id') || core.getState('id') || process.env.DEPLOYMENT_ID || 0) || Number('${{ steps.create_deployment.outputs.id || 0 }}'),
219+
deployment_id: Number('${{ steps.create_deployment.outputs.id }}'),
219220
state: 'success',
220221
environment: '${{ inputs.channel }}',
221222
log_url: logUrl,

0 commit comments

Comments
 (0)