From ab4201f3d3008fcea232a564512113e06b43da8a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 19 Sep 2026 13:51:50 +0000 Subject: [PATCH] Tighten Nix release workflow outputs Co-authored-by: dichhead <330471626+dichhead@users.noreply.github.com> --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4dbb04c61..62a9ec02b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,7 @@ jobs: - name: Validate package versions id: version + shell: bash run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG" - name: Build @@ -136,6 +137,7 @@ jobs: - name: Validate package versions id: version + shell: bash run: nix develop --command python3 scripts/release.py versions --tag "$RELEASE_TAG" - name: Download shared Linux payload @@ -146,10 +148,10 @@ jobs: - name: Set package version id: package - env: - VERSION: ${{ steps.version.outputs.version }} run: | nix develop --command bash --noprofile --norc -euo pipefail <<'EOF' + VERSION=$(python3 scripts/release.py versions --tag "$RELEASE_TAG" | sed -n 's/^version=//p') + test -n "$VERSION" sed -i "s/^version: .*/version: '$VERSION'/" snap/snapcraft.yaml echo "version=$VERSION" >> "$GITHUB_OUTPUT" EOF