Skip to content

Commit

Permalink
remove comma
Browse files Browse the repository at this point in the history
  • Loading branch information
semih.cavdar committed Mar 19, 2024
1 parent 19689f6 commit 14689b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ jobs:

- name: Read Tags from publish.yml
id: read_tags
run: echo "##[set-output name=version]$(awk '/tags/{print $2}' .github/workflows/publish.yml) | sed 's/,$//' "
run: |
tags=$(awk '/tags/{print $2}' .github/workflows/publish.yml)
tags_without_comma=${tags%,}
echo "tags::$tags_without_comma" >> $GITHUB_ENV
- name: Use Output
id: output
run: echo "Output is ${{ steps.read_tags.outputs.version }}"
run: echo "Output is ${{ $tags_without_comma }}"

0 comments on commit 14689b6

Please sign in to comment.