open-telemetry / opentelemetry-swift

OpenTelemetry API for Swift
https://opentelemetry.io/docs/instrumentation/swift/
Apache License 2.0
207 stars 124 forks source link

Replace deprecated command with environment file #510

Closed jongwooo closed 7 months ago

jongwooo commented 7 months ago

Description

Closes #509

Update workflows to use environment file instead of deprecated set-output command. For more information, see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

I found the workflow file that use set-output command through the following command:

$ find . -name '*.yml' -o -name '*.yaml' | xargs egrep '\bset-output\b'

AS-IS

run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

TO-BE

run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
nachoBonafonte commented 7 months ago

We are removing that workflow from the repository it is not working as expected, but thanks a lot for the PR fixing it