File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 38
38
# https://github.com/actions/setup-python/issues/361
39
39
- name : Generate .git/ansible-lint-requirements.txt
40
40
shell : bash
41
+ env :
42
+ GH_ACTION_REF : ${{ github.action_ref || 'main' }}
41
43
working-directory : ${{ steps.inputs.outputs.working_directory }}
42
44
run : |
43
- wget --output-document=.git/ansible-lint-requirements.txt https://raw.githubusercontent.com/ansible/ansible-lint/${{ github.action_ref || 'main' }} /.config/requirements-lock.txt
45
+ wget --output-document=.git/ansible-lint-requirements.txt https://raw.githubusercontent.com/ansible/ansible-lint/$GH_ACTION_REF /.config/requirements-lock.txt
44
46
45
47
- name : Set up Python
46
48
if : inputs.setup_python == 'true'
@@ -52,13 +54,15 @@ runs:
52
54
53
55
- name : Install ansible-lint
54
56
shell : bash
57
+ env :
58
+ GH_ACTION_REF : ${{ github.action_ref || 'main' }}
55
59
# We need to set the version manually because $GITHUB_ACTION_PATH is not
56
60
# a git clone and setuptools-scm would not be able to determine the version.
57
61
# git+https://github.com/ansible/ansible-lint@${{ github.action_ref || 'main' }}
58
62
# SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.action_ref || 'main' }}
59
63
run : |
60
64
cd $GITHUB_ACTION_PATH
61
- pip install "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@${{ github.action_ref || 'main' }} "
65
+ pip install "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@$GH_ACTION_REF "
62
66
ansible-lint --version
63
67
64
68
- name : Run ansible-lint
You can’t perform that action at this time.
0 commit comments