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; echo "$EOF" >> $GITHUB_ENV;
- id: modified-versions - id: modified-versions
run: | run: |
echo -n "::set-output name=versions::" echo "versions=`echo "${{ env.versions }}" | jq -R . | jq -sc .`" >> $GITHUB_OUTPUT
echo "${{ env.versions }}" | jq -R . | jq -sc .
macos_build: macos_build:
needs: discover_modified_scripts needs: discover_modified_scripts
if: needs.discover_modified_scripts.outputs.versions != '[""]' if: needs.discover_modified_scripts.outputs.versions != '[""]'