Skip to content

Commit 3fe91c9

Browse files
authored
Merge branch 'main' into markdown-img-bg
2 parents a08fd80 + 50d884f commit 3fe91c9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/welcome.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Welcome
22
on:
33
pull_request:
4+
types:
5+
# On by default if you specify no types.
6+
- "opened"
7+
- "reopened"
8+
- "synchronize"
9+
# For `skip-label` only.
10+
- "labeled"
11+
- "unlabeled"
412

513
jobs:
614
release-template:
@@ -39,6 +47,22 @@ jobs:
3947
})
4048
}
4149
50+
check-for-changeset:
51+
name: Check for changeset
52+
runs-on: ubuntu-latest
53+
env:
54+
SKIP_LABEL: "skip changeset"
55+
steps:
56+
- if: "contains(github.event.pull_request.labels.*.name, 'skip changeset')"
57+
run: echo "passed"; exit 0;
58+
- if: "!contains(github.event.pull_request.labels.*.name, 'skip changeset')"
59+
uses: actions/checkout@v4
60+
with:
61+
ref: ${{ github.event.pull_request.head.sha }}
62+
- if: "!contains(github.event.pull_request.labels.*.name, 'skip changeset')"
63+
name: "Check for changeset"
64+
run: script/check-for-changeset
65+
4266
bundle-stats:
4367
needs: release-template
4468
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)