Skip to content

Commit

Permalink
Drop colors from versions to fix tagging (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph authored Sep 23, 2024
1 parent 7d05cc8 commit 1095783
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 1095783

Please sign in to comment.