From 925cb6da4bf95f2e290620ad58b8ccf4b517f0ff Mon Sep 17 00:00:00 2001 From: Robert Allen Date: Sat, 20 Jun 2026 09:22:53 -0400 Subject: [PATCH] fix(reusable-actionlint): version-check by full path (GITHUB_PATH not active in-step) The install step appended install_dir to $GITHUB_PATH then ran `actionlint --version` in the SAME step, but $GITHUB_PATH only affects subsequent steps, so the bare call exits 127 (command not found). Caller main pipelines went red. Call the binary by full path for the in-step version check; the separate Run step still resolves via PATH. --- .github/workflows/reusable-actionlint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-actionlint.yml b/.github/workflows/reusable-actionlint.yml index 25054c5..6612def 100644 --- a/.github/workflows/reusable-actionlint.yml +++ b/.github/workflows/reusable-actionlint.yml @@ -68,7 +68,10 @@ jobs: tar xzf actionlint.tar.gz -C "${install_dir}" actionlint chmod +x "${install_dir}/actionlint" echo "${install_dir}" >> "${GITHUB_PATH}" - actionlint --version + # Call by full path: $GITHUB_PATH only affects *subsequent* steps, so + # `actionlint` is not yet on PATH within this step (a bare call exits + # 127). The next step ("Run actionlint") resolves it via $GITHUB_PATH. + "${install_dir}/actionlint" --version - name: Run actionlint env: FILES: ${{ inputs.files }}