From 9a83ea17e01d7528fd17b09e1e5ac4c5eba43a47 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:47:51 +0000 Subject: [PATCH] Fix shellcheck warnings in workflow Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com> --- .github/workflows/release.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87e69d9..c4a0ed4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,20 +23,20 @@ jobs: id: get-version run: | VERSION=$(cat VERSION) - echo "version=$VERSION" >> $GITHUB_OUTPUT - echo "Version: $VERSION" + echo "version=${VERSION}" >> "$GITHUB_OUTPUT" + echo "Version: ${VERSION}" - name: Check if tag exists id: check-tag run: | VERSION=$(cat VERSION) git fetch --tags - if git rev-parse "v$VERSION" >/dev/null 2>&1; then - echo "Tag v$VERSION already exists, skipping release" - echo "should-release=false" >> $GITHUB_OUTPUT + if git rev-parse "v${VERSION}" >/dev/null 2>&1; then + echo "Tag v${VERSION} already exists, skipping release" + echo "should-release=false" >> "$GITHUB_OUTPUT" else - echo "Tag v$VERSION does not exist, proceeding with release" - echo "should-release=true" >> $GITHUB_OUTPUT + echo "Tag v${VERSION} does not exist, proceeding with release" + echo "should-release=true" >> "$GITHUB_OUTPUT" fi build: @@ -86,17 +86,17 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - VERSION=${{ needs.check-version-change.outputs.version }} + VERSION="${{ needs.check-version-change.outputs.version }}" # Create a tag git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git tag -a "v$VERSION" -m "Release v$VERSION" - git push origin "v$VERSION" + git tag -a "v${VERSION}" -m "Release v${VERSION}" + git push origin "v${VERSION}" # Create release with artifacts - gh release create "v$VERSION" \ - --title "Release v$VERSION" \ + gh release create "v${VERSION}" \ + --title "Release v${VERSION}" \ --generate-notes \ artifacts/* \ bin/breezy_gnome_setup \