Skip to content

Commit 29cc076

Browse files
fix(ci): regenerate .SRCINFO in publish-aur mirror sync
The mirror CI requires .SRCINFO to match PKGBUILD, but the sync only committed PKGBUILD. Regenerate canonically before sync and commit both files.
1 parent 7c38beb commit 29cc076

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

‎.github/workflows/publish-aur.yml‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,31 @@ jobs:
194194
echo "- AUR RPC version: \`${AUR_VERSION:-missing}\`"
195195
} >> "$GITHUB_STEP_SUMMARY"
196196
197+
- name: Regenerate .SRCINFO for mirror sync
198+
# The mirror CI requires .SRCINFO to match PKGBUILD exactly
199+
# (same makepkg command the mirror validates with). AUR itself
200+
# regenerates it on push, but the GitHub mirror does not.
201+
working-directory: aur-package
202+
run: |
203+
set -euo pipefail
204+
docker run --rm \
205+
-v "$PWD:/work:rw" \
206+
-w /work \
207+
archlinux:latest \
208+
bash -euo pipefail -c '
209+
pacman -Sy --noconfirm --needed pacman-contrib base-devel >/dev/null 2>&1
210+
useradd -m builder
211+
chown -R builder:builder /work
212+
runuser -u builder -- makepkg --printsrcinfo > .SRCINFO
213+
'
214+
197215
- name: Sync updated PKGBUILD to GitHub mirror
216+
# Keep the aur-package GitHub mirror in sync with what's live
217+
# on AUR (.SRCINFO regenerated above so the mirror CI stays green).
198218
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
199219
with:
200220
repository: aur-package
201221
commit_message: "chore: sync PKGBUILD for v${{ steps.version.outputs.version }}"
202222
commit_user_name: "Create Python App Bot"
203223
commit_user_email: "ulisescf.24@gmail.com"
204-
file_pattern: "PKGBUILD"
224+
file_pattern: "PKGBUILD .SRCINFO"

0 commit comments

Comments
 (0)