Skip to content

Commit a05ce5d

Browse files
rohun-apexQalthos
authored andcommitted
fix-github-action-ref-doesnt-checkout-that-ref
1 parent b294d5b commit a05ce5d

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)