Skip to content

Commit 95ddff8

Browse files
committed
Fix static deploy workflow to only run if validation succeeds
1 parent b042fa0 commit 95ddff8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/static.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
name: github-pages
3030
url: ${{ steps.deployment.outputs.page_url }}
3131
runs-on: ubuntu-latest
32+
# Only deploy static page if the validation succeeded
33+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
3234
steps:
3335
- name: Checkout
3436
uses: actions/checkout@v4

0 commit comments

Comments
 (0)