From 23d111ed9bde52cb9e116966a68517657a004a76 Mon Sep 17 00:00:00 2001 From: alextse-bg Date: Thu, 2 Jul 2026 15:13:21 -0400 Subject: [PATCH] fix: github action variable never set We are not setting the github action variable during semantic release step, which cause the build and push to never trigger Ticket: WCN-1101 --- .github/workflows/release-to-ghcr.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-to-ghcr.yaml b/.github/workflows/release-to-ghcr.yaml index ffabbaed..bda1f606 100644 --- a/.github/workflows/release-to-ghcr.yaml +++ b/.github/workflows/release-to-ghcr.yaml @@ -38,7 +38,16 @@ jobs: - name: Release id: release - run: npx semantic-release + run: | + set -euo pipefail + npx semantic-release 2>&1 | tee /tmp/sr-output.txt + if grep -q "Published release" /tmp/sr-output.txt; then + VERSION=$(grep -oP '(?<=Published release )\S+' /tmp/sr-output.txt | head -1) + echo "new_release_published=true" >> $GITHUB_OUTPUT + echo "new_release_version=$VERSION" >> $GITHUB_OUTPUT + else + echo "new_release_published=false" >> $GITHUB_OUTPUT + fi env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}