A new try to fix the building tagged image in the scope of scheduled run (#1133)

* test putting '"' to make the resulting JSON correct

* revert the testing code and move the fixed line to its final location

---------

Co-authored-by: Konstantin Koval
This commit is contained in:
Kostiantyn
2024-11-21 20:30:05 +02:00
committed by GitHub
parent a9d7b774bd
commit 54669fb0a8

View File

@@ -50,7 +50,7 @@ jobs:
if [ -z "$TAG" ]; then
echo 'tags=[{"tag": "${{ github.ref_name }}", "ref": "${{ github.ref }}"}]' | tee -a $GITHUB_OUTPUT
else
echo tags=[{"tag": "${{ github.ref_name }}", "ref": "${{ github.ref }}"}, {"tag": "$TAG", "ref": "$(git show-ref --tags -d | grep "/$TAG$" | cut -d ' ' -f 2)"}] | tee -a $GITHUB_OUTPUT
echo tags=[{'"'tag'"': '"'${{ github.ref_name }}'"', '"'ref'"': '"'${{ github.ref }}'"'}, {'"'tag'"': '"'$TAG'"', '"'ref'"': '"'$(git show-ref --tags -d | grep "/$TAG$" | cut -d ' ' -f 2)'"'}] | tee -a $GITHUB_OUTPUT
fi
;;
*)