Fixed tag?
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 39s
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 39s
This commit is contained in:
@@ -17,7 +17,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
|
||||||
submodules: false
|
submodules: false
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
@@ -56,13 +55,23 @@ jobs:
|
|||||||
tag_name: "latest"
|
tag_name: "latest"
|
||||||
files: build/*.pdf
|
files: build/*.pdf
|
||||||
|
|
||||||
- name: Remove old 'latest' tag and push new one
|
- name: Update and push latest tag
|
||||||
continue-on-error: true
|
env:
|
||||||
run: git tag -d latest && git push origin :refs/tags/latest
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
- name: Create 'latest' tag and push it
|
git config user.name "gitea-actions"
|
||||||
continue-on-error: true
|
git config user.email "actions@local"
|
||||||
run: git tag latest HEAD && git push origin latest
|
|
||||||
|
# Ensure origin uses token auth
|
||||||
|
git remote set-url origin "https://oauth2:${GITEA_TOKEN}@gitea.mintcalc.com/alexander/TUM-Formelsammlungen.git"
|
||||||
|
|
||||||
|
# Move (or create) the tag locally
|
||||||
|
git tag -f latest
|
||||||
|
|
||||||
|
# Force-push the tag to overwrite remote 'latest'
|
||||||
|
git push origin refs/tags/latest --force
|
||||||
|
|
||||||
- name: Trigger
|
- name: Trigger
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|||||||
Reference in New Issue
Block a user