hashicorp / terraform-k8s

Terraform Cloud Operator for Kubernetes
https://learn.hashicorp.com/tutorials/terraform/kubernetes-operator?in=terraform/kubernetes
Mozilla Public License 2.0
454 stars 71 forks source link

Replace deprecated command with environment file #168

Open jongwooo opened 10 months ago

jongwooo commented 10 months ago

Community Note

Closes #167

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

run: echo "::set-output name=version::$(cat ./.go-version)"

TO-BE

run: echo "version=$(cat ./.go-version)" >> $GITHUB_OUTPUT

Release note for CHANGELOG:

NONE