11name : " Bot: Comment on the Pull Request"
22description : " Comment on the pull request with the results of the markdown generation"
33on :
4- workflow_dispatch :
5- inputs :
6- workflow_id :
7- required : true
8-
9- concurrency :
10- group : pr-${{ github.event.workflow_run.pull_requests[0].number }}
11- cancel-in-progress : true
4+ workflow_run :
5+ workflows : ["Bot: Receive Pull Request"]
6+ types :
7+ - completed
128
139jobs :
1410 # Pull requests are valid if:
1814 test-pr :
1915 name : " Test if pull request is valid"
2016 runs-on : ubuntu-latest
21- if : >
22- github.event_name == 'workflow_dispatch' ||
23- (
24- github.event_name == 'workflow_run' &&
25- (
26- github.event.workflow_run.event == 'pull_request' ||
27- github.event.workflow_run.event == 'workflow_dispatch'
28- ) &&
29- github.event.workflow_run.conclusion == 'success'
30- )
3117 outputs :
3218 is_valid : ${{ steps.check-pr.outputs.VALID }}
3319 payload : ${{ steps.check-pr.outputs.payload }}
3824 id : dl
3925 uses : carpentries/actions/download-workflow-artifact@main
4026 with :
41- run : ${{ github.event.workflow_run.id || inputs.workflow_id }}
27+ run : ${{ github.event.workflow_run.id }}
4228 name : ' pr'
4329
4430 - name : " Get PR Number"
7965
8066 - name : " Skip checks for Workbench version file updates"
8167 if : steps.changed-files.outputs.only_version_file == 'true'
82- env :
83- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8468 run : |
85- echo "Only workbench-docker-version.txt changed, skipping preflight checks and running cache update "
86- gh workflow run update-cache.yaml --ref main
69+ echo "# 🔧 Wait for Next Cache Update # "
70+ echo "Only workbench-docker-version.txt changed."
8771 exit 0
8872 shell : bash
8973
@@ -127,8 +111,8 @@ jobs:
127111 permissions :
128112 contents : write
129113 steps :
130- - name : ' Checkout md outputs'
131- uses : actions/checkout@v5
114+ - name : " Checkout md outputs"
115+ uses : actions/checkout@v4
132116 with :
133117 ref : md-outputs
134118 path : built
@@ -138,7 +122,7 @@ jobs:
138122 id : dl
139123 uses : carpentries/actions/download-workflow-artifact@main
140124 with :
141- run : ${{ github.event.workflow_run.id || inputs.workflow_id }}
125+ run : ${{ github.event.workflow_run.id }}
142126 name : ' built'
143127
144128 - if : steps.dl.outputs.success == 'true'
@@ -177,7 +161,7 @@ jobs:
177161 id : dl
178162 uses : carpentries/actions/download-workflow-artifact@main
179163 with :
180- run : ${{ github.event.workflow_run.id || inputs.workflow_id }}
164+ run : ${{ github.event.workflow_run.id }}
181165 name : ' diff'
182166
183167 - if : steps.dl.outputs.success == 'true'
@@ -210,7 +194,7 @@ jobs:
210194 id : dl
211195 uses : carpentries/actions/download-workflow-artifact@main
212196 with :
213- run : ${{ github.event.workflow_run.id || inputs.workflow_id }}
197+ run : ${{ github.event.workflow_run.id }}
214198 name : ' built'
215199
216200 - name : " Alert if spoofed"
0 commit comments