Skip to content
activity

GitHub Action

Github Pull Request Retest

v1.0.0-RC1 Latest version

Github Pull Request Retest

activity

Github Pull Request Retest

Re-run failed GitHub Workflow runs on PRs by commenting "/retest"

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Github Pull Request Retest

uses: yuluo-yx/[email protected]

Learn more about this action in yuluo-yx/gh-retest

Choose a version

Github Pull Request Retest

You can add this action to your project by adding the following to your project's workflows:

name: Retest Action on PR Comment

on:
  issue_comment:
    types: [created]

permissions:
  contents: read

jobs:
  retest:
    if: |
      ${{
         github.event.issue.pull_request
         && github.repository == 'owner/repo'
      }}
    name: Retest
    runs-on: ubuntu-22.04
    permissions:
      pull-requests: write
      actions: write
    steps:
      - uses: yuluo-yx/gh-retest@VERSION
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          comment-id: ${{ github.event.comment.id }}
          pr-url: ${{ github.event.issue.pull_request.url }}

License

MIT