Skip to content

Commit

Permalink
ci(retest): filter more comments to use GHA less (argoproj#13208)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <[email protected]>
  • Loading branch information
agilgur5 authored Jul 6, 2024
1 parent 3ece3b3 commit 80866f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/retest.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Detect and Trigger Retest
on:
issue_comment:
types: [created, edited]
types: [created]

permissions:
contents: read

jobs:
retest:
if: github.event.comment.author_association == 'MEMBER' && github.event.comment.body == '/retest'
# PR comments where a Member types "/retest" exactly
if: github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && github.event.comment.body == '/retest'
permissions:
actions: write # for re-running failed jobs: https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#re-run-a-job-from-a-workflow-run
runs-on: ubuntu-latest
Expand Down

0 comments on commit 80866f9

Please sign in to comment.