From 65250aaabd0ced49c64eced1e2160d9b07072084 Mon Sep 17 00:00:00 2001 From: Paul Swartz Date: Thu, 20 Oct 2022 09:40:43 -0400 Subject: [PATCH] fix: stop using `set-output` Blog post: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- build-push-ecr/action.yml | 2 +- commit-metadata/action.yml | 6 +++--- eb-ecr-dockerrun/action.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build-push-ecr/action.yml b/build-push-ecr/action.yml index ba30b90..f241336 100644 --- a/build-push-ecr/action.yml +++ b/build-push-ecr/action.yml @@ -35,7 +35,7 @@ runs: steps: - run: test -n "${{ inputs.aws-access-key-id }}" -a -n "${{ inputs.aws-secret-access-key }}" shell: bash - - run: echo "::set-output name=tag::${{ inputs.docker-repo }}:git-$(git rev-parse --short HEAD)" + - run: echo "tag=${{ inputs.docker-repo }}:git-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT id: docker shell: bash - run: > diff --git a/commit-metadata/action.yml b/commit-metadata/action.yml index 2274942..60c183e 100644 --- a/commit-metadata/action.yml +++ b/commit-metadata/action.yml @@ -13,10 +13,10 @@ runs: - shell: bash id: git run: | - echo ::set-output name=sha-short::$(git rev-parse --short ${{ github.sha }}) - echo ::set-output name=commit-message::$( + echo "sha-short=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT + echo "commit-message=$( git log --format=%B -n 1 ${{ github.sha }} | head -n 1 - ) + )" >> $GITHUB_OUTPUT - shell: bash run: | cat <> $GITHUB_OUTPUT + echo "dir=$(mktemp -d $RUNNER_TEMP/deploy-XXXXXX)" >> $GITHUB_OUTPUT - shell: bash run: | test -d rel/.ebextensions && cp -r rel/.ebextensions ${{ steps.build.outputs.dir }}