Skip to content

Commit

Permalink
remove comma tries
Browse files Browse the repository at this point in the history
  • Loading branch information
semih.cavdar committed Mar 19, 2024
1 parent 0ee9168 commit 9d3c71e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ jobs:
- name: Read Tags from publish.yml
id: read_tags
run: |
tags=$(awk '/tags/{print $2}' .github/workflows/publish.yml)
tags_without_comma=${tags%,}
echo "tags::$tags_without_comma" >> $GITHUB_ENV
version=$(awk '/tags/{print $2}' .github/workflows/publish.yml | sed 's/,$//')
echo "version=$version" >> $GITHUB_ENV
- name: Use Output
id: output
run: echo "Output is $tags_without_comma"
run: echo "Output is $version"

0 comments on commit 9d3c71e

Please sign in to comment.