fix deprecated set-output command in workflow

This commit is contained in:
kLiHz 2024-03-31 03:42:23 +08:00 committed by ginuerzh
parent 50844821f8
commit 4508747635
2 changed files with 4 additions and 4 deletions

View File

@ -36,9 +36,9 @@ jobs:
fi
# Set output parameters.
echo ::set-output name=tags::${TAGS}
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=docker_platforms::linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/s390x
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "docker_image=${DOCKER_IMAGE}" >> $GITHUB_OUTPUT
echo "docker_platforms=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/s390x" >> $GITHUB_OUTPUT
# https://github.com/crazy-max/ghaction-docker-buildx
- name: Set up Docker Buildx

View File

@ -20,7 +20,7 @@ jobs:
continue-on-error: true
name: check latest commit is less than a day
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "should_run=false" >> $GITHUB_OUTPUT
trigger-nightly:
needs: check_date