Skip to content

Commit

Permalink
Merge pull request #3718 from jcaamano/commands-workflow-filter-body
Browse files Browse the repository at this point in the history
Don't run commands workflow if not a command
  • Loading branch information
trozet committed Jun 28, 2023
2 parents f2ef8ea + f21d8ee commit 96ba255
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,14 @@ concurrency: commands-${{ github.ref }}

jobs:
retest:
if: github.event.issue.pull_request
if: |
github.event.issue.pull_request &&
(
contains(github.event.comment.body, '/retest') ||
contains(github.event.comment.body, '/retest-failed') ||
contains(github.event.comment.body, '/cancel') ||
contains(github.event.comment.body, '/help')
)
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down

0 comments on commit 96ba255

Please sign in to comment.