Skip to content

Commit

Permalink
ci: fix retest command (#2349)
Browse files Browse the repository at this point in the history
* ci: fix retest command

Signed-off-by: zirain <[email protected]>

* Bump

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: zirain <[email protected]>
Co-authored-by: Huabing Zhao <[email protected]>
  • Loading branch information
zirain and zhaohuabing authored Dec 26, 2023
1 parent 586d73a commit 130b4d7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/retest.yaml → .github/workflows/command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:
contents: read

jobs:
retest:
command:
if: |
${{
github.event.issue.pull_request
Expand All @@ -22,6 +22,19 @@ jobs:
pull-requests: write
actions: write
steps:
- uses: envoyproxy/toolshed/gh-actions/github/[email protected]
name: Parse command from comment
id: command
with:
text: ${{ github.event.comment.body }}
matching: >-
^/(retest)
# retest
- uses: envoyproxy/toolshed/gh-actions/[email protected]
if: ${{ steps.command.outputs.command == 'retest' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
comment-id: ${{ github.event.comment.id }}
pr-url: ${{ github.event.issue.pull_request.url }}
args: ${{ steps.command.outputs.args }}

0 comments on commit 130b4d7

Please sign in to comment.