Skip to content

Commit ecac199

Browse files
authored
chore: make pubish workflow call a top level job (npm#170)
1 parent a760337 commit ecac199

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/update-cli.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ permissions:
1111
jobs:
1212
update-cli:
1313
runs-on: ubuntu-latest
14+
outputs:
15+
has_changes: ${{ steps.status.outputs.has_changes }}
1416
steps:
1517
- name: Check out source
1618
uses: actions/checkout@v3
@@ -40,6 +42,8 @@ jobs:
4042
git config user.email 'npm-cli+bot@github.com'
4143
git commit -m 'CLI documentation update from CI'
4244
git push origin main
43-
- name: Call publish workflow
44-
if: steps.status.outputs.has_changes == '1'
45-
uses: ./.github/workflows/publish.yml
45+
46+
publish:
47+
needs: update-cli
48+
if: needs.update-cli.outputs.has_changes == '1'
49+
uses: ./.github/workflows/publish.yml

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy