Skip to content

Commit 04c0abb

Browse files
authored
Add check changeset workflow (#179)
* add changeset workflow * Update check-for-changeset.yml * Update check-for-changeset.yml
1 parent 49150da commit 04c0abb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check for changeset
2+
3+
on:
4+
pull_request:
5+
types:
6+
# On by default if you specify no types.
7+
- 'opened'
8+
- 'reopened'
9+
- 'synchronize'
10+
# For `skip-label` only.
11+
- 'labeled'
12+
- 'unlabeled'
13+
14+
jobs:
15+
check-for-changeset:
16+
name: Check for changeset
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: 'Check for changeset'
21+
uses: brettcannon/check-for-changed-files@v1
22+
with:
23+
file-pattern: '.changeset/*.md'
24+
skip-label: 'skip changeset'
25+
failure-message: 'No changeset found. If these changes should not result in a new version, apply the ${skip-label} label to this pull request. If these changes should result in a version bump, please add a changeset https://git.io/J6QvQ'

0 commit comments

Comments
 (0)