fix(ci): add concurrency lock and detached HEAD recovery to AUR workflow

Prevents race conditions when multiple tags trigger simultaneous AUR
pushes. Recovers from corrupted master branch in AUR repo.
This commit is contained in:
vicrodh committed 2026-02-23 18:33:14 -06:00
1 parent 1981771584
commit f2e0d6727f
1 file changed
+7
+7
View File
@@ -17,6 +17,10 @@ on:
default: "1"
type: string
concurrency:
group: aur-publish
cancel-in-progress: false
jobs:
update-aur:
runs-on: ubuntu-latest
@@ -110,6 +114,9 @@ jobs:
- name: Clone AUR repo
run: |
git clone ssh://aur@aur.archlinux.org/qbz-bin.git /tmp/aur-qbz-bin
cd /tmp/aur-qbz-bin
# Ensure we are on master (recover from detached HEAD if remote branch was corrupted)
git checkout master 2>/dev/null || git checkout -b master
- name: Determine pkgrel
id: pkgrel