Skip to content

Replace deprecated command with environment file#7921

Merged
dbaileychess merged 2 commits intogoogle:masterfrom
jongwooo:chore/replace-deprecated-command-with-environment-file
Apr 26, 2023
Merged

Replace deprecated command with environment file#7921
dbaileychess merged 2 commits intogoogle:masterfrom
jongwooo:chore/replace-deprecated-command-with-environment-file

Conversation

@jongwooo
Copy link
Copy Markdown
Contributor

Description

Resolve #7920

Update .github/workflows/build.yml 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=hashes::$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)"

TO-BE

run: echo "hashes=$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)" >> $GITHUB_OUTPUT

@github-actions github-actions bot added the CI Continuous Integration label Apr 22, 2023
@dbaileychess dbaileychess merged commit 6eae49a into google:master Apr 26, 2023
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
Co-authored-by: Derek Bailey <derekbailey@google.com>
jochenparm pushed a commit to jochenparm/flatbuffers that referenced this pull request Oct 29, 2024
Co-authored-by: Derek Bailey <derekbailey@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated set-output command with environment file

2 participants