From 875215670b836c57bce69d362ba60be892c041aa Mon Sep 17 00:00:00 2001 From: Fionn Fitzmaurice Date: Fri, 16 Aug 2024 22:06:19 +0800 Subject: [PATCH] Support containerised jobs on self-hosted runners There is a runner bug where the github.action_path and GITHUB_ACTION_PATH variables are not equal when running in a container on a self-hosted runner, with the former being set incorrectly. See https://github.com/actions/runner/issues/716 for details. Fixes #1. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index db65b60..b69b5f6 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ runs: steps: - name: Lint newline - run: ${{ github.action_path }}/git-no-newlines + run: $GITHUB_ACTION_PATH/git-no-newlines shell: bash env: EXCLUDE_PATTERN: ${{ inputs.exclusion_pattern }}