From abb253bd1ec22e19a114aa29117e5e502c28e2dc Mon Sep 17 00:00:00 2001 From: Refringe Date: Sat, 2 Mar 2024 14:56:28 -0500 Subject: [PATCH] Replace newline and comma characters with dashes in TAGS output --- .gitea/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 37c739e..85a7edd 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -42,7 +42,9 @@ jobs: if [ -z "$TAGS" ]; then TAGS="no-tag" fi - printf "::set-output name=tags::%s" "${TAGS//$'\n'/,}" + TAGS="${TAGS//$'\n'/-}" # Replace newline characters with dashes + TAGS="${TAGS//,/-}" # Replace commas with dashes + echo "::set-output name=tags::${TAGS}" echo "Commit Hash: ${{ steps.cache-keys.outputs.commit_hash }}" echo "Tags: ${{ steps.cache-keys.outputs.tags }}" shell: bash