File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 test-blocks :
1515 name : Test doc code blocks
1616 runs-on : ubuntu-latest
17+ continue-on-error : true
1718
1819 steps :
1920 - name : Checkout docs repo
Original file line number Diff line number Diff line change 11name : docs-deploy-pages
22
33on :
4+ workflow_dispatch :
45 workflow_run :
56 workflows : ["docs-ci"]
67 types : [completed]
1819 deploy :
1920 name : Deploy docs to GitHub Pages
2021 if : >
21- github.event.workflow_run.conclusion == 'success' &&
22- github.event.workflow_run.head_branch == 'main'
22+ github.event_name == 'workflow_dispatch' ||
23+ (github.event.workflow_run.conclusion == 'success' &&
24+ github.event.workflow_run.head_branch == 'main')
2325 runs-on : ubuntu-latest
2426 environment :
2527 name : github-pages
2931 - name : Checkout docs repo at tested commit
3032 uses : actions/checkout@v4
3133 with :
32- ref : ${{ github.event.workflow_run.head_sha }}
34+ ref : ${{ github.event_name == 'workflow_dispatch' && github.sha || github. event.workflow_run.head_sha }}
3335
3436 - name : Set up Python
3537 uses : actions/setup-python@v5
You can’t perform that action at this time.
0 commit comments