ci: do not destroy and remake tag when commit
This commit is contained in:
parent
b2ddc66a7c
commit
2c70715e91
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue