From 5f74a846a384a526658c03e103e17616a42d222c Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Tue, 27 Jan 2026 09:50:34 +0300 Subject: [PATCH] fix: use GITHUB_WORKSPACE env var instead of template in containers ${{ github.workspace }} template expands to host path at parse time, but inside Docker containers the actual workspace path is different. Use $GITHUB_WORKSPACE environment variable which is correct at runtime. --- .github/workflows/check-getting-started.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-getting-started.yml b/.github/workflows/check-getting-started.yml index 15ed23ca..c143a3f9 100644 --- a/.github/workflows/check-getting-started.yml +++ b/.github/workflows/check-getting-started.yml @@ -180,17 +180,19 @@ jobs: # Build the template from within the SDK workspace context # Templates use workspace inheritance and can't be built standalone + # Note: Use $GITHUB_WORKSPACE env var, not ${{ github.workspace }} template + # because inside containers the template expands to host path which doesn't exist - name: Compile the template node run: | . "$HOME/.cargo/env" - cd ${{ github.workspace }} + cd "$GITHUB_WORKSPACE" cargo build --release -p ${{ matrix.package }} timeout-minutes: 120 - name: Check that the binary is executable run: | . "$HOME/.cargo/env" - cd ${{ github.workspace }} + cd "$GITHUB_WORKSPACE" cargo run --release -p ${{ matrix.package }} -- --help timeout-minutes: 5 @@ -312,16 +314,18 @@ jobs: # Build the template from within the SDK workspace context # Templates use workspace inheritance and can't be built standalone + # Note: Use $GITHUB_WORKSPACE env var, not ${{ github.workspace }} template + # because inside containers the template expands to host path which doesn't exist - name: Compile the template node run: | . "$HOME/.cargo/env" - cd ${{ github.workspace }} + cd "$GITHUB_WORKSPACE" cargo build --release -p ${{ matrix.package }} timeout-minutes: 120 - name: Check that the binary is executable run: | . "$HOME/.cargo/env" - cd ${{ github.workspace }} + cd "$GITHUB_WORKSPACE" cargo run --release -p ${{ matrix.package }} -- --help timeout-minutes: 5