Skip to content

Commit a842ca5

Browse files
authored
ci: fix merged notification (#94)
1 parent 9fb7fa3 commit a842ca5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/merged-notification.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ on:
66

77
jobs:
88
comment:
9-
if: github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
9+
if: github.event.pull_request.merged
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
12+
- uses: actions/github-script@v3
1313
with:
14+
github-token: ${{secrets.GITHUB_TOKEN}}
1415
script: |
1516
github.issues.createComment({
16-
...context.repo,
17-
issue_number: context.payload.pull_request.number,
18-
body: 'Thanks for contributing! Your pull request has been merged 🎉'
17+
issue_number: context.issue.number,
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
body: '👋 Thanks for contributing!'
1921
})

0 commit comments

Comments
 (0)