Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,23 @@ jobs:
with:
files: |
.changeset/**/*.md

# Intentionally ran after the changed-files step so the github API is used to identify
# changed files rather than a local git diff, this is more reliable for pull requests
# originating from a forked repository.
- name: Checkout files
id: checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: steps.changed-files.outputs.any_changed == 'true'
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 1
persist-credentials: false
sparse-checkout: |
.changeset
- name: Check if any changesets contain minor or major changes
id: check
if: steps.blocked.outputs.result != 'true'
if: steps.changed-files.outputs.any_changed == 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
Expand Down
Loading