Fix CI PATH: prepend GNU sed via GITHUB_PATH instead of replacing PATH
Some checks failed
Build Talos CM5 Image / build (push) Failing after 28s

The hardcoded job-level PATH env wiped out nvm/node, breaking
actions/checkout. Use GITHUB_PATH to prepend GNU sed's gnubin
directory while preserving the runner's inherited PATH.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathias Beaulieu-Duncan 2026-02-14 10:54:34 -05:00
parent 6c75585c0a
commit a4e934a4e9
2 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,6 @@ jobs:
build: build:
runs-on: [self-hosted, macos] runs-on: [self-hosted, macos]
timeout-minutes: 180 timeout-minutes: 180
env:
PATH: /opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
steps: steps:
- name: Checkout - name: Checkout
@ -35,6 +33,7 @@ jobs:
for pkg in make gnu-sed crane; do for pkg in make gnu-sed crane; do
brew list --formula "$pkg" &>/dev/null || brew install "$pkg" brew list --formula "$pkg" &>/dev/null || brew install "$pkg"
done done
echo "/opt/homebrew/opt/gnu-sed/libexec/gnubin" >> "$GITHUB_PATH"
gmake --version | head -1 gmake --version | head -1
- name: Set up Docker Buildx - name: Set up Docker Buildx

View File

@ -15,8 +15,6 @@ jobs:
check-and-build: check-and-build:
runs-on: [self-hosted, macos] runs-on: [self-hosted, macos]
timeout-minutes: 15 timeout-minutes: 15
env:
PATH: /opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
steps: steps:
- name: Checkout - name: Checkout
@ -29,6 +27,7 @@ jobs:
for pkg in make gnu-sed crane jq; do for pkg in make gnu-sed crane jq; do
brew list --formula "$pkg" &>/dev/null || brew install "$pkg" brew list --formula "$pkg" &>/dev/null || brew install "$pkg"
done done
echo "/opt/homebrew/opt/gnu-sed/libexec/gnubin" >> "$GITHUB_PATH"
- name: Check for upstream updates - name: Check for upstream updates
id: check id: check