ci: update dam mirror workflow

- Don't trigger builds.sr.ht CI on the mirror. We use yojo.
- Send email on failure.
This commit is contained in:
Maxwell G 2026-06-06 01:18:15 -05:00
commit 7520604dfd
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8

View file

@ -28,6 +28,10 @@ secrets:
oauth: pages.sr.ht/PAGES:RW
sources:
- https://forge.fedoraproject.org/packaging/fedrq
triggers:
- action: email
condition: failure
to: "maxwell@gtmx.me"
tasks:
- mirror: |
cd fedrq/
@ -41,7 +45,7 @@ tasks:
git remote add --fetch github git@github.com:gotmax23/fedrq-mirror.git
git remote add --fetch srht 'git@git.sr.ht:~gotmax23/fedrq'
git push --force --follow-tags github main
git push --force --follow-tags srht main
git push --force --follow-tags -o skip-ci srht main
else
echo "Not mirroring. Branch is not main."
exit