Skip to content

Commit 256e8e1

Browse files
authored
🔧 correct env var syntax in release action (#49)
1 parent f3017a5 commit 256e8e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
uses: actions/checkout@v2
4343

4444
- name: Get and save the release tag
45-
run: echo "::set-env name=RELEASE_TAG::${GITHUB_REF##*/}"
45+
run: echo "RELEASE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
4646

4747
- name: Build and save the image release tag
48-
run: echo "::set-env name=IMAGE_TAG::release-${RELEASE_TAG}_terraform-${{ matrix.tf_version }}_awscli-${{ matrix.awscli_version }}"
48+
run: echo "IMAGE_TAG=release-${RELEASE_TAG}_terraform-${{ matrix.tf_version }}_awscli-${{ matrix.awscli_version }}" >> $GITHUB_ENV
4949

5050
- name: Build image
5151
run: docker image build . --file Dockerfile --build-arg TERRAFORM_VERSION=${{ matrix.tf_version }} --build-arg AWS_CLI_VERSION=${{ matrix.awscli_version }} --tag ${ORGANIZATION}/${IMAGE_NAME}:${IMAGE_TAG}

0 commit comments

Comments
 (0)