From ddf3b9f6096cab1c677bfaed17ab5906b8c62976 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 4 Mar 2026 23:26:49 -0500 Subject: [PATCH] fix(ci): use GITHUB_ENV not GITHUB_PATH for dotnet PATH on ARC runners GITHUB_PATH between-step propagation is broken on summerwind ARC runner pods. Switch to GITHUB_ENV PATH= which is reliably sourced on every step. --- .github/workflows/ci-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 8a5ccd858d..56cbb08702 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -17,14 +17,15 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - # Install .NET to a writable location — self-hosted ARC runners don't allow - # writes to /usr/share/dotnet, so we redirect via DOTNET_INSTALL_DIR. + # Install .NET — use GITHUB_ENV (not GITHUB_PATH) to set PATH because + # ARC self-hosted runner pods don't pick up GITHUB_PATH between steps. - name: Install .NET SDK run: | - export DOTNET_INSTALL_DIR="$HOME/.dotnet" + DOTNET_INSTALL_DIR="$HOME/.dotnet" mkdir -p "$DOTNET_INSTALL_DIR" curl -fsSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 10.0 --install-dir "$DOTNET_INSTALL_DIR" - echo "$DOTNET_INSTALL_DIR" >> "$GITHUB_PATH" + echo "DOTNET_ROOT=$DOTNET_INSTALL_DIR" >> "$GITHUB_ENV" + echo "PATH=$DOTNET_INSTALL_DIR:$PATH" >> "$GITHUB_ENV" - name: Run DotNet CLI Tests run: >