Skip to content

Commit 961241c

Browse files
authored
fix: workflow event conclusion (#11544)
should be `github.event.workflow_run.conclusion` instead of `github.event.workflow.conclusion`. Additionally the check was not accounting for `workflow_dispatch`.
1 parent 60ef258 commit 961241c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/npm.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ jobs:
4646
arch: arm64
4747
- os: win32
4848
arch: amd64
49-
if: ${{ github.event_name == 'workflow_run' && github.event.workflow.conclusion == 'success' }}
49+
# Run automatically after a successful 'release' workflow, or manually if a run_id is provided
50+
if: >-
51+
${{
52+
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
53+
(github.event_name == 'workflow_dispatch' && inputs.run_id != '')
54+
}}
5055
outputs:
5156
RELEASE_VERSION: ${{ steps.release-version.outputs.RELEASE_VERSION }}
5257
env:

0 commit comments

Comments
 (0)