Skip to content

Conversation

@jongwooo
Copy link

Description

Closes #2

Update .github/workflows/registry.yaml 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

echo ::set-output name=VERSION::${VERSION}
echo "::set-output name=git_revision::$(git rev-parse --short HEAD)"

TO-BE

echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
echo "git_revision=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

Signed-off-by: Jongwoo Han <jongwooo.han@gmail.com>
@jongwooo jongwooo force-pushed the feat/replace-deprecated-command-with-environment-file branch from 5a09554 to e5e89fd Compare December 16, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace deprecated set-output command with environment file

1 participant