File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ defaults:
1717 run :
1818 shell : bash -l {0}
1919
20+ env :
21+ PR_NUMBER : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.pr_number || github.event.number }}
22+
2023jobs :
2124 preprocess :
2225 runs-on : ubuntu-latest
@@ -33,11 +36,12 @@ jobs:
3336 run : |
3437 git config user.name github-actions
3538 git config user.email [email protected] 36- git push origin HEAD:_cookbook_data_PR${{ github.event.number }}
39+ git push origin HEAD:_cookbook_data_PR${{ env.PR_NUMBER }}
3740
3841 - name : Add descriptive comment to PR
3942 uses : thollander/actions-comment-pull-request@v3
4043 with :
44+ pr-number : ${{ env.PR_NUMBER }}
4145 message : >
4246 This repository caches data generated from notebooks stored in other
4347 repositories in the `_cookbook_data_*` branches. Regenerating this
6064 uses : thollander/actions-comment-pull-request@v3
6165 if : failure() && steps.copyCache.outcome == 'failure'
6266 with :
67+ pr-number : ${{ env.PR_NUMBER }}
6368 message : >
6469 This repository caches data generated from notebooks stored in other
6570 repositories in the `_cookbook_data_*` branches. Regenerating this
You can’t perform that action at this time.
0 commit comments