Skip to content

Commit 89bed90

Browse files
Allow Changesets release pull requests (#18)
Skip changeset-presence validation only for the bot-created Changesets release PR while keeping the required CI job successful.
1 parent 1b461a5 commit 89bed90

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,19 @@ jobs:
3232
- uses: actions/checkout@v7
3333
with:
3434
fetch-depth: 0
35-
- run: >-
35+
- name: Require a changeset
36+
if: >-
37+
github.head_ref != 'changeset-release/main' ||
38+
github.event.pull_request.user.login != 'github-actions[bot]'
39+
run: >-
3640
node scripts/check-changeset.mjs
3741
--base ${{ github.event.pull_request.base.sha }}
3842
--head ${{ github.event.pull_request.head.sha }}
43+
- name: Accept the Changesets release pull request
44+
if: >-
45+
github.head_ref == 'changeset-release/main' &&
46+
github.event.pull_request.user.login == 'github-actions[bot]'
47+
run: echo "Changesets release pull requests consume their changeset files."
3948

4049
discover-examples:
4150
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)