Skip to content

Commit

Permalink
Fix trigger rule (#20)
Browse files Browse the repository at this point in the history
* Fix typo

* Fix trigger rule
  • Loading branch information
na-ga authored Dec 28, 2021
1 parent 7f08958 commit 3f17d70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/github-actions-merger.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: merge

on:
issue_comment:
types: [created, edited]

jobs:
merge:
if: ${{ github.event.issue.pull_request }} && github.event.review.state == 'approved'
if: ${{ (github.event.issue.pull_request) && (github.event.comment.body == '/merge') }}
runs-on: ubuntu-latest
steps:
- name: labelcommit
- name: Create merge commit with labels
uses: abema/github-actions-merger@main
with:
"github_token": ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func validateEnv(e env) error {
}
for _, m := range e.Mergers {
if e.Actor == m {
// if actor mathes specified mergers, then valid workflow run.
// if actor matches specified mergers, then valid workflow run.
return nil
}
}
Expand Down

0 comments on commit 3f17d70

Please sign in to comment.