From d6c89b2998e29f2c3bf607f222c45564e7510f90 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 11 Oct 2020 11:26:48 -0400 Subject: [PATCH] Replace deprecated set-env command M: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ --- .github/workflows/build_app.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_app.yml b/.github/workflows/build_app.yml index 010773b..3125136 100644 --- a/.github/workflows/build_app.yml +++ b/.github/workflows/build_app.yml @@ -46,10 +46,11 @@ jobs: wrapper-cache-enabled: true dependencies-cache-enabled: true configuration-cache-enabled: true - - name: Set COMMIT_COUNT - run: echo "::set-env name=COMMIT_COUNT::$(git rev-list --count HEAD)" - - name: Set CURRENT_SHA - run: echo "::set-env name=CURRENT_SHA::$(git rev-parse --short HEAD)" + - name: Set env variables + run: | + set -x + echo "COMMIT_COUNT=$(git rev-list --count HEAD)" >> $GITHUB_ENV + echo "CURRENT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Create GitHub release id: create_release