File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33name : deploy
44
55on :
6+ workflow_run :
7+ workflows : ['test']
8+ types :
9+ - completed
610 workflow_dispatch :
711 inputs :
812 github_sha :
@@ -38,6 +42,7 @@ concurrency:
3842jobs :
3943 # This workflow contains a single job called "build"
4044 deploy :
45+ if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
4146 # The type of runner that the job will run on
4247 runs-on : ubuntu-latest
4348
Original file line number Diff line number Diff line change @@ -4,15 +4,10 @@ name: docs-deploy
44
55# Controls when the workflow will run
66on :
7- # Triggers the workflow on push or pull request events but only for the main branch
8- push :
9- branches :
10- - main
11- paths :
12- - ' docs/**'
13- - ' .github/workflows/docs-deploy.yml'
14-
15- # Allows you to run this workflow manually from the Actions tab
7+ workflow_run :
8+ workflows : ['test']
9+ types :
10+ - completed
1611 workflow_dispatch :
1712
1813# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
@@ -25,6 +20,7 @@ concurrency:
2520jobs :
2621 # This workflow contains a single job called "deploy"
2722 docs-deploy :
23+ if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
2824 # The type of runner that the job will run on
2925 runs-on : ubuntu-latest
3026
Original file line number Diff line number Diff line change 11name : test
22
33on :
4- push :
5- branches-ignore :
6- - docs
7- - analysis
8- - models
9- paths-ignore : # ignore any changes to the docs for this workflow or unimportant files
10- - ' docs/**'
11- - ' .github/workflows/docs-deploy.yml'
12- - ' LICENSE'
13- - ' **/*.md'
14- pull_request : [main]
4+ workflow_run :
5+ workflows : ['autofix.ci']
6+ types :
7+ - completed
158 workflow_dispatch :
169
1710jobs :
1811 test :
12+ if : ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1913 runs-on : ubuntu-latest
2014
2115 env :
You can’t perform that action at this time.
0 commit comments