Skip to content

Commit 1e87529

Browse files
Fix inputs
1 parent 4626153 commit 1e87529

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/cookbook_pr_opened.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defaults:
1818
shell: bash -l {0}
1919

2020
env:
21-
PR_NUMBER: ${{ github.event_name == 'workflow_dispatch' && github.event.number || inputs.pr_number }}
21+
PR_NUMBER: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.pr_number || github.event.number }}
2222

2323
jobs:
2424
preprocess:
@@ -34,8 +34,9 @@ jobs:
3434
- name: Copy cache from main to PR branch
3535
id: copyCache
3636
run: |
37-
echo ${{ env.PR_NUMBER }}
38-
echo $PR_NUMBER
37+
echo github.event.inputs.pr_number=${{ github.event.inputs.pr_number }}
38+
echo env.PR_NUMBER=${{ env.PR_NUMBER }}
39+
echo PR_NUMBER=$PR_NUMBER
3940
git config user.name github-actions
4041
git config user.email [email protected]
4142
git push origin HEAD:_cookbook_data_PR${PR_NUMBER}

0 commit comments

Comments
 (0)