debugging
This commit is contained in:
parent
eecff58bbc
commit
0b66dd9913
2 changed files with 2 additions and 5 deletions
|
@ -2,4 +2,4 @@
|
||||||
'astro': minor
|
'astro': minor
|
||||||
---
|
---
|
||||||
|
|
||||||
Just a test
|
Just a test again
|
||||||
|
|
5
.github/workflows/block-merge.yml
vendored
5
.github/workflows/block-merge.yml
vendored
|
@ -2,10 +2,6 @@ name: Check mergeability
|
||||||
|
|
||||||
on: pull_request # run on pull request events
|
on: pull_request # run on pull request events
|
||||||
|
|
||||||
# TODO
|
|
||||||
# 1. Check if there are minor changesets
|
|
||||||
# 2. Send PR disapproval
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# grant write permission on the pull-requests endpoint
|
# grant write permission on the pull-requests endpoint
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
@ -30,6 +26,7 @@ jobs:
|
||||||
echo "Checking for changesets marked as minor"
|
echo "Checking for changesets marked as minor"
|
||||||
echo '::set-output name=found::false'
|
echo '::set-output name=found::false'
|
||||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||||
|
echo "$file has changed"
|
||||||
if grep -q "'astro': minor" "$file"; then
|
if grep -q "'astro': minor" "$file"; then
|
||||||
echo '::set-output name=found::true'
|
echo '::set-output name=found::true'
|
||||||
echo "$file has a minor release tag"
|
echo "$file has a minor release tag"
|
||||||
|
|
Loading…
Reference in a new issue