Skip to content

Commit 1ad24e8

Browse files
committed
Don't run docs deploy step if publish wasn't run
1 parent 514ab10 commit 1ad24e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
name: Release
1919
runs-on: ubuntu-latest
2020
if: ${{ github.event.workflow_run.conclusion == 'success' }}
21+
outputs:
22+
deploy_docs: ${{ steps.changesets.outputs.publish }}
2123
steps:
2224
- uses: actions/checkout@v4
2325
with:
@@ -66,6 +68,7 @@ jobs:
6668
needs: release
6769
name: Deploy Docs to GitHub Pages
6870
runs-on: ubuntu-latest
71+
if: ${{ needs.release.outputs.deploy_docs == 'true' }}
6972

7073
environment:
7174
name: github-pages

0 commit comments

Comments
 (0)