From 011753049d05acf26620ad3cc84bf61d2b1cf09b Mon Sep 17 00:00:00 2001 From: Brian Cipriano Date: Wed, 2 Dec 2020 20:24:10 +0000 Subject: [PATCH] Switch to use new Github environment file. (#851) --- .github/workflows/packaging-pipeline.yml | 4 ++-- .github/workflows/release-pipeline.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/packaging-pipeline.yml b/.github/workflows/packaging-pipeline.yml index cf8664c32..7ff1568fe 100644 --- a/.github/workflows/packaging-pipeline.yml +++ b/.github/workflows/packaging-pipeline.yml @@ -63,7 +63,7 @@ jobs: set -e ci/generate_version_number.sh > VERSION echo "Build ID: $(cat ./VERSION)" - echo "::set-env name=BUILD_ID::$(cat ./VERSION)" + echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV} - name: Build Docker image uses: docker/build-push-action@v1 @@ -121,7 +121,7 @@ jobs: set -e ci/generate_version_number.sh > VERSION echo "Build ID: $(cat ./VERSION)" - echo "::set-env name=BUILD_ID::$(cat ./VERSION)" + echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV} - name: Extract database schema run: | diff --git a/.github/workflows/release-pipeline.yml b/.github/workflows/release-pipeline.yml index d275f7665..59f5da59d 100644 --- a/.github/workflows/release-pipeline.yml +++ b/.github/workflows/release-pipeline.yml @@ -21,10 +21,10 @@ jobs: set -e ci/generate_version_number.sh > VERSION echo "Build ID: $(cat ./VERSION)" - echo "::set-env name=BUILD_ID::$(cat ./VERSION)" + echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV} - name: Get current tag name - run: echo ::set-env name=TAG_NAME::${GITHUB_REF/refs\/tags\//} + run: echo "TAG_NAME=${GITHUB_REF/refs\/tags\//}" >> ${GITHUB_ENV} - name: Verify tag name and version match run: | @@ -54,7 +54,7 @@ jobs: set -e ci/generate_version_number.sh > VERSION echo "Build ID: $(cat ./VERSION)" - echo "::set-env name=BUILD_ID::$(cat ./VERSION)" + echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV} - name: Pull Docker image from staging run: | @@ -94,7 +94,7 @@ jobs: set -e ci/generate_version_number.sh > VERSION echo "Build ID: $(cat ./VERSION)" - echo "::set-env name=BUILD_ID::$(cat ./VERSION)" + echo "BUILD_ID=$(cat ./VERSION)" >> ${GITHUB_ENV} - name: Fetch artifacts id: fetch_artifacts