Skip to content

Commit

Permalink
add execution conditions for slash-command-action
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKian committed Jan 4, 2022
1 parent 0d3d894 commit 51982cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/issue-cmds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ jobs:
assignme:
name: /assignme
runs-on: ubuntu-latest
if: |
github.event_name == 'issue_comment' &&
github.event.action == 'created' &&
startsWith(github.event.comment.body, '/assignme')
steps:
- uses: xt0rted/slash-command-action@v1
Expand All @@ -26,6 +30,10 @@ jobs:
help:
name: /help
runs-on: ubuntu-latest
if: |
github.event_name == 'issue_comment' &&
github.event.action == 'created' &&
startsWith(github.event.comment.body, '/help')
steps:
- uses: xt0rted/slash-command-action@v1
Expand Down

0 comments on commit 51982cf

Please sign in to comment.