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 @@ -104,14 +104,16 @@ runs:
104
104
# Set repo and ref from which to run Docker container action
105
105
# to handle cases in which `github.action_` context is not set
106
106
# https://github.com/actions/runner/issues/2473
107
- REF=${{ env.ACTION_REF || github.ref_name }}
108
- REPO=${{ env.ACTION_REPO || github.repository }}
107
+ REF=${{ env.ACTION_REF || env.PR_REF || github.ref_name }}
108
+ REPO=${{ env.ACTION_REPO || env.PR_REPO || github.repository }}
109
109
echo "ref=$REF" >>"$GITHUB_OUTPUT"
110
110
echo "repo=$REPO" >>"$GITHUB_OUTPUT"
111
111
shell : bash
112
112
env :
113
113
ACTION_REF : ${{ github.action_ref }}
114
114
ACTION_REPO : ${{ github.action_repository }}
115
+ PR_REF : ${{ github.event.pull_request.head.ref }}
116
+ PR_REPO : ${{ github.event.pull_request.head.repo.full_name }}
115
117
- name : Check out action repo
116
118
uses : actions/checkout@v4
117
119
with :
You can’t perform that action at this time.
0 commit comments