0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-17 23:11:29 -05:00

ci: update check-merge.yml action (#10690)

This commit is contained in:
Emanuele Stoppa 2024-04-05 11:54:12 +01:00 committed by GitHub
parent 48f158215d
commit e300ac9b9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: |
@ -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