Skip to content

Commit

Permalink
refactor: 💡 chain github workflows, require success steps to longer p…
Browse files Browse the repository at this point in the history
…rocesses
  • Loading branch information
heldrida committed Sep 15, 2023
1 parent 8a3d82b commit 753fa01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches: '*'
workflow_dispatch:
workflow_run:
# Only trigger, when the PR title verification succeeds
workflows: ["Build verification", "PR title verification"]
types:
- completed

jobs:
deploy:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ on:
push:
branches:
- main

workflow_dispatch:
workflow_run:
# Only trigger, when the build verification succeeds
workflows: ["Build verification"]
types:
- completed

jobs:
deploy:
Expand Down

0 comments on commit 753fa01

Please sign in to comment.