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
This commit is contained in:
Taras Sotnikov 2023-03-01 16:25:10 +01:00 committed by GitHub
parent b74a2626a9
commit 06c7388780
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ runs:
- id: yamllint - id: yamllint
run: | run: |
# export LOGFILE=$(mktemp yamllint-XXXXXX) # export LOGFILE=$(mktemp yamllint-XXXXXX)
${{ github.action_path }}/entrypoint.sh $GITHUB_ACTION_PATH/entrypoint.sh
shell: bash shell: bash
env: env:
INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }} INPUT_FILE_OR_DIR: ${{ inputs.file_or_dir }}