A GitHub action that reruns specified GitHub checks for a pull request. This action is useful for re-triggering checks without needing to push new commits to the pull request.
on:
pull_request_review:
types: [ submitted ]
jobs:
rerun_checks:
runs-on: ubuntu-latest
name: Rerun specified checks
if: github.event.review.state == 'approved'
steps:
- name: Rerun Checks
uses: shqear93/rerun-checks@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
check-names: 'check1, check2' # Replace with the names of the jobs you want to rerun
Name | Description | Required | Default |
---|---|---|---|
github-token |
Token that is used to interact with GitHub | ✅ | |
check-names |
Comma-separated list of check names to rerun | ✅ | |
target-branch |
Branch for which checks should be rerun | ❌ | the head ref of the pull request, default branch |
Depending on the permissions granted to your token, you may lack some rights. To run successfully, this actions at least requires the following permissions:
permissions:
pull-requests: write
If you have suggestions for how rerun-checks could be improved, or want to report a bug, open a pull-request! I'd love all and any contributions.