chore(ci): add pull request retest action (#404)

Signed-off-by: yuluo-yx <yuluo08290126@gmail.com>
This commit is contained in:
YuLuo 2024-04-26 15:33:52 +08:00 committed by GitHub
parent 2d3c1737b7
commit d95d2ffd73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 27 additions and 0 deletions

27
.github/workflows/command.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Retest Action on PR Comment
on:
issue_comment:
types: [created]
permissions:
contents: read
jobs:
retest:
if: |
${{
github.event.issue.pull_request
&& github.repository == 'LinuxSuRen/api-testing'
}}
name: Retest
runs-on: ubuntu-22.04
permissions:
pull-requests: write
actions: write
steps:
- uses: yuluo-yx/gh-retest@V1.0.0-RC1
with:
token: ${{ secrets.GITHUB_TOKEN }}
comment-id: ${{ github.event.comment.id }}
pr-url: ${{ github.event.issue.pull_request.url }}