Skip to content

Commit

Permalink
ci: update check-merge.yml action (#10690)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Apr 5, 2024
1 parent 48f1582 commit e300ac9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:

- name: Get changed files in the .changeset folder
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v44
if: steps.blocked.outputs.result != 'true'
with:
files: |
Expand All @@ -49,12 +49,14 @@ jobs:
- name: Check if any changesets contain minor or major changes
id: check
if: steps.blocked.outputs.result != 'true'
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
echo "Checking for changesets marked as minor or major"
echo "found=false" >> $GITHUB_OUTPUT
regex="[\"']astro[\"']: (minor|major)"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
for file in ${ALL_CHANGED_FILES}; do
if [[ $(cat $file) =~ $regex ]]; then
version="${BASH_REMATCH[1]}"
echo "version=$version" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit e300ac9

Please sign in to comment.