From 06c73887800e3338a1a2f302db6234d9bac93d33 Mon Sep 17 00:00:00 2001 From: Taras Sotnikov Date: Wed, 1 Mar 2023 16:25:10 +0100 Subject: [PATCH] Use GITHUB_ACTION_PATH env Use `GITHUB_ACTION_PATH` environment variable instead of `${{ ithub.action_path }}` in order to allow execution inside a docker container. As metioned here: https://github.com/actions/runner/issues/716#issuecomment-795238933 --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c894ff2..6a17234 100644 --- a/action.yml +++ b/action.yml @@ -36,7 +36,7 @@ runs: - id: yamllint run: | # export LOGFILE=$(mktemp yamllint-XXXXXX) - ${{ github.action_path }}/entrypoint.sh + $GITHUB_ACTION_PATH/entrypoint.sh shell: bash env: INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }}