Skip to content

Commit

Permalink
Use strip ansi cli to remove colors
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Sep 23, 2024
1 parent 075dac3 commit 4950fdf
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 | grep --color=never '' | awk '{print $4}')" >> $GITHUB_OUTPUT
run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | npx -q strip-ansi-cli | xargs | 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 | grep --color=never '' | awk '{print $4}')" >> $GITHUB_OUTPUT
run: echo "version=$(npx jsr show @justbe/webview | head -n 2 | npx -q strip-ansi-cli | xargs | 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 4950fdf

Please sign in to comment.