mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 04:28:45 +02:00
Update onpush_builder.yaml
This commit is contained in:
19
.github/workflows/onpush_builder.yaml
vendored
19
.github/workflows/onpush_builder.yaml
vendored
@@ -203,3 +203,22 @@ jobs:
|
|||||||
pull: --rebase --autostash
|
pull: --rebase --autostash
|
||||||
fetch: --force
|
fetch: --force
|
||||||
push: --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
|
||||||
|
|||||||
Reference in New Issue
Block a user