Skip to content

Commit 4129a65

Browse files
fix: github action ref doesn't checkout that ref (#4774)
Co-authored-by: Alison Hart <[email protected]>
1 parent cd15dc1 commit 4129a65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ runs:
4949
shell: bash
5050
env:
5151
GH_ACTION_REF_INPUT: ${{ inputs.gh_action_ref }}
52-
GITHUB_ACTION_REF: ${{ github.action_ref }}
52+
GITHUB_ACTION_REF_DISAMBIGUATED: ${{ github.action_ref }}
5353
run: |
54-
action_ref="${GH_ACTION_REF_INPUT:-${GITHUB_ACTION_REF:-main}}"
54+
action_ref="${GH_ACTION_REF_INPUT:-${GITHUB_ACTION_REF_DISAMBIGUATED:-main}}"
5555
if [[ ${GH_ACTION_REF_INPUT} ]]; then
5656
echo "::warning::Using input 'gh_action_ref': Loading ansible-lint version ${action_ref}. This input should only be used in composite actions where built-in 'GH_ACTION_REF' is set to the parent action version. If possible, use the 'uses: ansible-lint@<version>' syntax instead."
5757
else

0 commit comments

Comments
 (0)