Skip to content

Commit

Permalink
Checkout github.head_ref for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
br3ndonland committed May 31, 2024
1 parent 730f3fd commit ffa7b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ runs:
# Set repo and ref from which to run Docker container action
# to handle cases in which `github.action_` context is not set
# https://github.com/actions/runner/issues/2473
REF=${{ env.ACTION_REF || github.ref_name }}
REF=${{ env.ACTION_REF || github.head_ref || github.ref_name }}
REPO=${{ env.ACTION_REPO || github.repository }}
echo "ref=$REF" >>"$GITHUB_OUTPUT"
echo "repo=$REPO" >>"$GITHUB_OUTPUT"
Expand Down

0 comments on commit ffa7b69

Please sign in to comment.