Add GitHub action bot to re-run failed jobs (#14004)

Closes #14002
This commit is contained in:
Alexander Schwartz 2022-08-26 09:59:41 +02:00 committed by GitHub
parent 7daeca86f5
commit 757d407f77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

25
.github/workflows/github-action-bot.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Keycloak GitHub bot
# This GitHub bot listens on comments in the repository and reruns failed GitHub actions:
# When adding a new comment '/rerun' as is on a pull request that is open, the bot will re-run any failed jobs in a workflow run.
# The user commenting needs to be either a collaborator, an owner, a member of the organization or a contributor.
# See https://github.com/keycloak/keycloak-gh-actionbot for more information
on:
issue_comment:
types:
- created
permissions:
actions: write
pull-requests: write
jobs:
act:
runs-on: ubuntu-latest
steps:
# to avoid a tag being changed afterwards, use the commit hash of the action
- uses: keycloak/keycloak-gh-actionbot@c76e6c1ce249dac0278652c2f94f743fe5bb9bcd # v0.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}