CI: replace set-output with GITHUB_OUTPUT (#3079)

`::set-output` is deprecated as per https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
This commit is contained in:
tuzi3040 2024-10-02 21:37:31 +08:00 committed by GitHub
parent 5180c3cfb5
commit 468dc81107
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,8 +21,7 @@ jobs:
echo "$EOF" >> $GITHUB_ENV;
- id: modified-versions
run: |
echo -n "::set-output name=versions::"
echo "${{ env.versions }}" | jq -R . | jq -sc .
echo "versions=`echo "${{ env.versions }}" | jq -R . | jq -sc .`" >> $GITHUB_OUTPUT
macos_build:
needs: discover_modified_scripts
if: needs.discover_modified_scripts.outputs.versions != '[""]'