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:
parent
48f158215d
commit
e300ac9b9d
1 changed files with 4 additions and 2 deletions
6
.github/workflows/check-merge.yml
vendored
6
.github/workflows/check-merge.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue