Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use of versioned github action #3762

Merged
merged 22 commits into from Nov 28, 2023
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
99ddaf3
issue-3761
karl-johan-grahn Sep 21, 2023
c30226e
Env vars are not accessible from name property.
ssbarnea Sep 21, 2023
137b9d0
update
karl-johan-grahn Sep 21, 2023
9537f0f
update
karl-johan-grahn Sep 21, 2023
3c3f16e
Merge branch 'main' into issue-3761
karl-johan-grahn Sep 21, 2023
c9389dc
Merge branch 'main' into issue-3761
karl-johan-grahn Sep 28, 2023
a74690f
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 1, 2023
df5dfab
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 6, 2023
54a46b1
Merge branch 'main' into issue-3761
ssbarnea Oct 6, 2023
b7ce750
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 11, 2023
cf1c49a
Merge branch 'main' into issue-3761
ssbarnea Oct 12, 2023
cefb19e
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 16, 2023
50d75c4
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 17, 2023
bc562a7
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 17, 2023
9b34a26
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 19, 2023
ddfac83
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 19, 2023
522ceb3
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 22, 2023
3a795f6
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 24, 2023
9d165cb
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 26, 2023
35e3d27
Merge branch 'main' into issue-3761
karl-johan-grahn Oct 27, 2023
d4073b7
Merge branch 'main' into issue-3761
ssbarnea Oct 30, 2023
88da5c0
Merge branch 'main' into issue-3761
ssbarnea Nov 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions action.yml
Expand Up @@ -38,9 +38,11 @@ runs:
# https://github.com/actions/setup-python/issues/361
- name: Generate .git/ansible-lint-requirements.txt
shell: bash
env:
GH_ACTION_REF: ${{ github.action_ref || 'main' }}
working-directory: ${{ steps.inputs.outputs.working_directory }}
run: |
wget --output-document=.git/ansible-lint-requirements.txt https://raw.githubusercontent.com/ansible/ansible-lint/${{ github.action_ref || 'main' }}/.config/requirements-lock.txt
wget --output-document=.git/ansible-lint-requirements.txt https://raw.githubusercontent.com/ansible/ansible-lint/$GH_ACTION_REF/.config/requirements-lock.txt

- name: Set up Python
if: inputs.setup_python == 'true'
Expand All @@ -52,13 +54,15 @@ runs:

- name: Install ansible-lint
shell: bash
env:
GH_ACTION_REF: ${{ github.action_ref || 'main' }}
# We need to set the version manually because $GITHUB_ACTION_PATH is not
# a git clone and setuptools-scm would not be able to determine the version.
# git+https://github.com/ansible/ansible-lint@${{ github.action_ref || 'main' }}
# SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.action_ref || 'main' }}
run: |
cd $GITHUB_ACTION_PATH
pip install "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@${{ github.action_ref || 'main' }}"
pip install "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@$GH_ACTION_REF"
ansible-lint --version

- name: Run ansible-lint
Expand Down