Skip to content

Commit dccc0a3

Browse files
authored
ci(changelog): Only run changelog check in PR (#4851)
The merge group does not have the pull request context, for now skip the check, until we have a better solution to check changelogs in the merge queue.
1 parent fda73c1 commit dccc0a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/changelog.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ jobs:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
with:
1717
script: |
18-
const changelog = require('./.github/actions/changelog/index.js')
19-
await changelog({github, context, core})
18+
if (context.payload.pull_request) {
19+
const changelog = require('./.github/actions/changelog/index.js')
20+
await changelog({github, context, core})
21+
}

0 commit comments

Comments
 (0)