mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 18:41:55 -05:00
Patch set-output
deprecation in workflows (#9543)
This commit is contained in:
parent
98c69b89cc
commit
1099c6412b
3 changed files with 7 additions and 5 deletions
4
.github/workflows/check-merge.yml
vendored
4
.github/workflows/check-merge.yml
vendored
|
@ -50,10 +50,10 @@ jobs:
|
|||
if: steps.blocked.outputs.result != 'true'
|
||||
run: |
|
||||
echo "Checking for changesets marked as minor"
|
||||
echo '::set-output name=found::false'
|
||||
echo "found=false" >> $GITHUB_OUTPUT
|
||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
||||
if grep -q "'astro': minor" "$file"; then
|
||||
echo '::set-output name=found::true'
|
||||
echo "found=true" >> $GITHUB_OUTPUT
|
||||
echo "$file has a minor release tag"
|
||||
fi
|
||||
done
|
||||
|
|
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -54,10 +54,10 @@ jobs:
|
|||
if [[ $output = '{ "changesets": [], "releases": [] }' ]]
|
||||
then
|
||||
echo 'No changeset found'
|
||||
echo "::set-output name=run_job::true"
|
||||
echo "run_job=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo 'changes found, push to latest skipped'
|
||||
echo "::set-output name=run_job::false"
|
||||
echo "run_job=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
update:
|
||||
|
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -62,7 +62,9 @@ jobs:
|
|||
- name: Generate Notification
|
||||
id: notification
|
||||
if: steps.changesets.outputs.published == 'true'
|
||||
run: message=$(node scripts/notify/index.js '${{ steps.changesets.outputs.publishedPackages }}') && echo ::set-output name=message::${message//$'\n'/'%0A'}
|
||||
run: |
|
||||
message=$(node scripts/notify/index.js '${{ steps.changesets.outputs.publishedPackages }}')
|
||||
echo "message=${message//$'\n'/'%0A'}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Discord Notification
|
||||
if: steps.changesets.outputs.published == 'true'
|
||||
|
|
Loading…
Reference in a new issue