Update onpush_builder.yaml

This commit is contained in:
Alexandre
2025-06-28 10:14:39 +02:00
committed by GitHub
parent 1cdaa74212
commit 9cc9a96c25

View File

@@ -203,3 +203,22 @@ jobs:
pull: --rebase --autostash
fetch: --force
push: --force
# 6. Revert if workflow fails
revert-on-failure:
if: failure()
needs: [detect-changed-addons, prebuild-sanitize, lint_config, build, make-changelog]
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Revert the triggering commit
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git revert --no-commit ${{ github.sha }}
git commit -m "Revert '${{ github.event.head_commit.message }}' [nobuild]"
git push origin master