Skip to content

Commit

Permalink
Make deploy workflow conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
samhh committed Jun 5, 2023
1 parent 6d93551 commit e4713e3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
name: Deploy

on:
push:
branches:
- master
workflow_run:
workflows: Check
branches: master
types: completed

jobs:
deploy:
name: Deploy
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -34,6 +36,7 @@ jobs:
docs:
name: Publish docs
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit e4713e3

Please sign in to comment.