From b4018c22f8fe8371bd6845d0cd62cebea54ce012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bilhan=20Kara=C3=B6ren?= Date: Fri, 21 Jun 2024 17:26:15 +0200 Subject: [PATCH] Fix working directory when used as an github action (#4213) Co-authored-by: Bilhan Karaoeren --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 8ec9ea242c..692a9b3234 100644 --- a/action.yml +++ b/action.yml @@ -42,14 +42,14 @@ runs: GH_ACTION_REF: ${{ github.action_ref || 'main' }} working-directory: ${{ steps.inputs.outputs.working_directory }} run: | - wget --output-document=${{ github.workspace}}/.git/ansible-lint-requirements.txt https://raw.githubusercontent.com/ansible/ansible-lint/$GH_ACTION_REF/.config/requirements-lock.txt + wget --output-document=${{ steps.inputs.outputs.working_directory }}/.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' uses: actions/setup-python@v5 with: cache: pip - cache-dependency-path: ${{ github.workspace }}/.git/ansible-lint-requirements.txt + cache-dependency-path: ${{ steps.inputs.outputs.working_directory }}/.git/ansible-lint-requirements.txt python-version: "3.11" - name: Install ansible-lint