From 6537f3ffe16d14eb6fad1b7ddf1d187a34c0544d Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 6 Jun 2026 07:46:30 +0100 Subject: [PATCH] fix(workflow): add shell: bash to steps using bashisms (parameter expansion, [[ ) and ensure make uses bash via SHELL=; prevents /bin/sh syntax errors in release CI --- .gitea/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index e4cf97e..602cc6e 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -35,6 +35,7 @@ jobs: run: go mod download - name: Build for multiple platforms + shell: bash run: | VERSION=${GITHUB_REF#refs/tags/} COMMIT=$(git rev-parse --short HEAD) @@ -45,6 +46,7 @@ jobs: - name: Prepare assets + shell: bash run: | VERSION=${GITHUB_REF#refs/tags/} for bin in build/gostations-* ; do @@ -60,7 +62,8 @@ jobs: # Clean raw binaries (we ship the tarballs) for plat in 'linux/amd64' 'linux/arm64' 'darwin/amd64' 'darwin/arm64' 'windows/amd64'; do - IFS='/' read -r OS ARCH <<< "$plat" + OS=$(echo "$plat" | cut -d/ -f1) + ARCH=$(echo "$plat" | cut -d/ -f2) BIN="gostations-${OS}-${ARCH}" if [ "$OS" = "windows" ]; then BIN="${BIN}.exe"; fi rm -f "build/${BIN}" @@ -70,6 +73,7 @@ jobs: run: apt update && apt install -y jq - name: Create Release & Upload Assets + shell: bash env: GITEA_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: |