File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ ---
2+ ' @tanstack/query-core ' : major
3+ ---
4+
5+ TEST
You can’t perform that action at this time.
0 commit comments