fix: e2e test CI #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Same pattern as payblocks: require a new .changeset/*.md for PRs to main, unless | |
| # the PR is labelled `no-changeset` (docs-only, chore, etc.). | |
| name: Validate Changeset | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check-files: | |
| name: Check for changeset | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changeset') }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check for new changeset | |
| run: | | |
| BASE_BRANCH=${{ github.event.pull_request.base.ref }} | |
| if git diff --name-only "origin/${BASE_BRANCH}...HEAD" | grep -q '^.changeset/.*\.md$'; then | |
| echo "A new changeset was added." | |
| else | |
| echo "No new changeset in this PR. Add one with: pnpm changeset (or add label no-changeset for docs/chore only)." | |
| exit 1 | |
| fi |