set-output in gha is deprecated
Closed this issue · 4 comments
reisraff commented
Describe the bug
Sonner GHA will deprecate the "set-output" feature.
Expected Behavior
do not show deprecation warning
Current Behavior
showing:
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Reproduction Steps
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
Possible Solution
run: |
echo "VAR=${value}" >> $GITHUB_ENV
Additional Information/Context
kellertk commented
aws-actions/amazon-ecr-login is not this repository. Did you mean to open this issue there?
reisraff commented
Oh... sorry... I wrote the description by copying and pasting.
Actially it is yes the configure-aws-credentials, take a look:
Updating the way to reproduce:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ inputs.aws-access-key-id }}
aws-secret-access-key: ${{ inputs.aws-secret-access-key }}
aws-region: ${{ inputs.aws-region }}
kellertk commented
You're using @v1
. The latest version of this action is @v4
. Please use @v4
to resolve this.
github-actions commented
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.