Skip to content

Commit 3230739

Browse files
authored
ci(toolkit): Only run issue notification on pull requests (aws#5502)
## Problem The notification step of lint-commits fails on master since a pull request is not defined ## Solution If the linting isn't in a PR then don't run the notification step
1 parent b3001be commit 3230739

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
script: |
3939
const notify = require('.github/workflows/notify.js')
4040
await notify({github, context})
41+
if: github.event_name == 'pull_request'
4142
- name: Check PR title
4243
run: |
4344
node "$GITHUB_WORKSPACE/.github/workflows/lintcommit.js"

0 commit comments

Comments
 (0)