From 757d407f771af430ba4e4547303736349fe377eb Mon Sep 17 00:00:00 2001 From: Alexander Schwartz Date: Fri, 26 Aug 2022 09:59:41 +0200 Subject: [PATCH] Add GitHub action bot to re-run failed jobs (#14004) Closes #14002 --- .github/workflows/github-action-bot.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/github-action-bot.yml diff --git a/.github/workflows/github-action-bot.yml b/.github/workflows/github-action-bot.yml new file mode 100644 index 0000000000..38ec079058 --- /dev/null +++ b/.github/workflows/github-action-bot.yml @@ -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 }}