File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -111,14 +111,16 @@ runs:
111
111
# Set repo and ref from which to run Docker container action
112
112
# to handle cases in which `github.action_` context is not set
113
113
# https://github.com/actions/runner/issues/2473
114
- REF=${{ env.ACTION_REF || github.ref_name }}
115
- REPO=${{ env.ACTION_REPO || github.repository }}
114
+ REF=${{ env.ACTION_REF || env.PR_REF || github.ref_name }}
115
+ REPO=${{ env.ACTION_REPO || env.PR_REPO || github.repository }}
116
116
echo "ref=$REF" >>"$GITHUB_OUTPUT"
117
117
echo "repo=$REPO" >>"$GITHUB_OUTPUT"
118
118
shell : bash
119
119
env :
120
120
ACTION_REF : ${{ github.action_ref }}
121
121
ACTION_REPO : ${{ github.action_repository }}
122
+ PR_REF : ${{ github.event.pull_request.head.ref }}
123
+ PR_REPO : ${{ github.event.pull_request.head.repo.full_name }}
122
124
- name : Check out action repo
123
125
uses : actions/checkout@v4
124
126
with :
You can’t perform that action at this time.
0 commit comments