From 14689b604331ff69ba1e4ae8d98a7d0b18aa3394 Mon Sep 17 00:00:00 2001 From: "semih.cavdar" Date: Tue, 19 Mar 2024 21:56:50 +0300 Subject: [PATCH] remove comma --- .github/workflows/version-check.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-check.yml b/.github/workflows/version-check.yml index 9489add..0a35ffc 100644 --- a/.github/workflows/version-check.yml +++ b/.github/workflows/version-check.yml @@ -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 }}" \ No newline at end of file