re-create tag manually to avoid force push

This commit is contained in:
griffi-gh 2023-05-19 03:45:50 +02:00
parent bbbd57516d
commit 7b438de4f1

View file

@ -56,11 +56,15 @@ jobs:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
path: ./artifacts path: ./artifacts
- uses: rickstaa/action-create-tag@v1 - name: Delete existing tag
with: continue-on-error: true
tag: nightly run: |
tag_exists_error: false git tag -d nightly;
force_push_tag: true git push --delete origin refs/tags/nightly;
- name: Create nightly tag
run: |
git tag nightly;
git push origin nightly;
- name: Create zip files - name: Create zip files
run: | run: |
cd ./artifacts; cd ./artifacts;
@ -93,9 +97,9 @@ jobs:
- name: Create zip files - name: Create zip files
run: | run: |
cd ./artifacts; cd ./artifacts;
for folder in */; for folder in */; do
do zip -r "${folder%/}.zip" "$folder"; zip -r "${folder%/}.zip" "$folder"*;
rm -rf "$folder" rm -rf "$folder";
done; done;
cd ..; cd ..;
- uses: rlespinasse/github-slug-action@v4.4.1 - uses: rlespinasse/github-slug-action@v4.4.1