From 10957830cfbfc117a9c2ae2c214c10e503ec7eb3 Mon Sep 17 00:00:00 2001 From: Justin Bennett Date: Mon, 23 Sep 2024 14:24:06 -0400 Subject: [PATCH] Drop colors from versions to fix tagging (#44) --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c3df42e..d3c6233 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,7 +21,7 @@ jobs: - name: Get published version id: published_version - run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | xargs | awk '{print $4}')" >> $GITHUB_OUTPUT + run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | xargs | grep --color=never '' | awk '{print $4}')" >> $GITHUB_OUTPUT - name: Publish package if: ${{ steps.current_version.outputs.version != steps.published_version.outputs.version }} @@ -32,7 +32,7 @@ jobs: - name: Get latest version if: ${{ steps.current_version.outputs.version != steps.published_version.outputs.version }} id: latest_version - run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | xargs | awk '{print $4}')" >> $GITHUB_OUTPUT + run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | xargs | grep --color=never '' | awk '{print $4}')" >> $GITHUB_OUTPUT - name: Tag and push if versions differ if: ${{ steps.current_version.outputs.version != steps.published_version.outputs.version && steps.latest_version.outputs.version != steps.published_version.outputs.version }}