ci: do not destroy and remake tag when commit

This commit is contained in:
Antoine Martin 2025-03-22 16:38:12 -04:00
parent b2ddc66a7c
commit 2c70715e91
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -57,12 +57,16 @@ jobs:
run: |
while read tag; do
git checkout $tag
git tag -d $tag
if test ${{ inputs.is_commit }} != "true"; then
git tag -d $tag
fi
git checkout ci -- ./.forgejo
git config user.name "forgejo-actions[bot]"
git config user.email "dev@ayakael.net"
git commit -m 'Inject custom workflow'
git tag -a $tag -m $tag
if test ${{ inputs.is_commit }} != "true"; then
git tag -a $tag -m $tag
fi
done < missing_tags
- name: Push to destination
run: git push --force origin refs/tags/*:refs/tags/* --tags