From f7829f311b456e3903ab6cc4d4e19a0c3353f9eb Mon Sep 17 00:00:00 2001 From: Brian Hardock Date: Wed, 26 Aug 2026 11:33:24 -0600 Subject: [PATCH] Fix release workflow Signed-off-by: Brian Hardock --- .github/workflows/release-trigger.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-trigger.yml b/.github/workflows/release-trigger.yml index 131b0f8..1a366ed 100644 --- a/.github/workflows/release-trigger.yml +++ b/.github/workflows/release-trigger.yml @@ -164,9 +164,11 @@ jobs: - name: Extract Spin dependency version shell: bash run: | - # Extract either 'tag = "vX.Y.Z"' or 'rev = "..."' from the first spin-app dependency - SPIN_TAG=$(grep -m1 'spin-app.*tag' Cargo.toml | sed -n 's/.*tag = "\([^"]*\)".*/\1/p') - SPIN_REV=$(grep -m1 'spin-app.*rev' Cargo.toml | sed -n 's/.*rev = "\([^"]*\)".*/\1/p') + # Extract either 'tag = "vX.Y.Z"' or 'rev = "..."' from the first spin-app dependency. + # `|| true` because only one of the two patterns matches, and an unmatched + # grep would otherwise abort the step under `set -e -o pipefail`. + SPIN_TAG=$(grep -m1 'spin-app.*tag' Cargo.toml | sed -n 's/.*tag = "\([^"]*\)".*/\1/p') || true + SPIN_REV=$(grep -m1 'spin-app.*rev' Cargo.toml | sed -n 's/.*rev = "\([^"]*\)".*/\1/p') || true if [ -n "$SPIN_TAG" ]; then echo "SPIN_VERSION=$SPIN_TAG" >> "$GITHUB_ENV"