Skip to content

fix(reusable-actionlint): version-check by full path - #6

Merged
zircote merged 1 commit into
mainfrom
fix/actionlint-version-path
Jun 20, 2026
Merged

fix(reusable-actionlint): version-check by full path#6
zircote merged 1 commit into
mainfrom
fix/actionlint-version-path

Conversation

@zircote

@zircote zircote commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Fix in-step PATH bug.

… 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.
Copilot AI review requested due to automatic review settings June 20, 2026 13:22
@zircote
zircote merged commit b314c29 into main Jun 20, 2026
1 check passed
@zircote
zircote deleted the fix/actionlint-version-path branch June 20, 2026 13:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an in-step PATH resolution issue in the reusable actionlint workflow by invoking actionlint via its installed absolute path immediately after writing to $GITHUB_PATH (which only takes effect for subsequent steps).

Changes:

  • Replace actionlint --version with "${install_dir}/actionlint" --version inside the install step.
  • Add an inline comment explaining why $GITHUB_PATH doesn’t affect the current step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants