0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-13 06:50:45 -05:00

Replace newline and comma characters with dashes in TAGS output

This commit is contained in:
Refringe 2024-03-02 14:56:28 -05:00
parent 3714bd83be
commit abb253bd1e
No known key found for this signature in database
GPG Key ID: DA8524051241DD36

View File

@ -42,7 +42,9 @@ jobs:
if [ -z "$TAGS" ]; then if [ -z "$TAGS" ]; then
TAGS="no-tag" TAGS="no-tag"
fi 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 "Commit Hash: ${{ steps.cache-keys.outputs.commit_hash }}"
echo "Tags: ${{ steps.cache-keys.outputs.tags }}" echo "Tags: ${{ steps.cache-keys.outputs.tags }}"
shell: bash shell: bash