This GitHub Action (written in JavaScript) wraps the GitHub API, to allow you to leverage GitHub Actions to rerun you failure checks in PR.
Create a workflow .yml
file in your .github/workflows
directory. An example workflow is available below. For more
information, reference the Github Help Documentation for Creating a workflow file.
repo_owner
: The owner of the repositoryrepo_name
: The name of the repositoryrerun_cmd
: The commands string to rerun all failure checkscomments
: The comments string of the PR
On every issue_comment
created to the pull request matching the rerun_cmd
.
on:
issue_comment:
types: [created]
jobs:
bot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bot actions
uses: zymap/bot@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # replace here to your token
with:
repo_owner: zymap # replace here to your repo owner
repo_name: bot # replace here to your repo name
rerun_cmd: rerun failure checks
comment: ${{ github.event.comment.body }}