Skip to content

Commit dd7b9db

Browse files
authored
ci: plan registry releases from the inputs, not from github.event_name (#20)
1 parent 6d516d0 commit dd7b9db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎.github/workflows/emdash-release.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,11 @@ jobs:
4343
with:
4444
node-version: 24
4545

46+
# Keyed on the inputs, not on github.event_name: in a called workflow
47+
# that is the caller's event (`push`), never `workflow_call`.
4648
- name: "Plan Changesets plugin releases"
4749
id: changesets
48-
if: ${{ github.event_name == 'workflow_call' }}
50+
if: ${{ inputs.published-packages != '' }}
4951
shell: bash
5052
env:
5153
EMDASH_PUBLISHED_PACKAGES: ${{ inputs.published-packages }}
@@ -55,7 +57,7 @@ jobs:
5557
5658
- name: "Plan manual plugin release"
5759
id: manual
58-
if: ${{ github.event_name == 'workflow_dispatch' }}
60+
if: ${{ inputs.package != '' }}
5961
shell: bash
6062
env:
6163
EMDASH_RELEASE_SELECTOR: ${{ inputs.package }}

0 commit comments

Comments
 (0)