Skip to content

Commit 00af74e

Browse files
Testing
1 parent 6523b5f commit 00af74e

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/pr.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,18 @@ jobs:
8484
uses: danielroe/provenance-action@v0.1.1
8585
with:
8686
fail-on-downgrade: true
87+
- name: Check for Changesets marked as major
88+
id: major
89+
run: |
90+
echo "found=false" >> $GITHUB_OUTPUT
91+
regex="(major)"
92+
shopt -s nullglob
93+
for file in .changeset/*.md; do
94+
if [[ $(cat $file) =~ $regex ]]; then
95+
echo "found=true" >> $GITHUB_OUTPUT
96+
fi
97+
done
98+
- name: Echo result
99+
run: echo $FOUND
100+
env:
101+
FOUND: ${{ steps.major.outputs.found }}

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
run: |
4343
echo "found=false" >> $GITHUB_OUTPUT
4444
regex="(major)"
45-
for file in ".changeset/*.md"; do
45+
shopt -s nullglob
46+
for file in .changeset/*.md; do
4647
if [[ $(cat $file) =~ $regex ]]; then
4748
echo "found=true" >> $GITHUB_OUTPUT
4849
fi

grumpy-plants-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/query-core': major
3+
---
4+
5+
TEST

0 commit comments

Comments
 (0)