From 4deafa53d73445f066060604dd6594e13a2a153a Mon Sep 17 00:00:00 2001 From: Priyank Purohit Date: Fri, 21 Jun 2024 13:46:04 -0400 Subject: [PATCH] Removed set-env in favour of new patterns by Gh --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e636171..501fc01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,13 +27,13 @@ jobs: - run: yarn run lint - name: Set ENV for codeclimate (pull_request) run: | - echo "::set-env name=GIT_BRANCH::${{ github.head_ref }}" - echo "::set-env name=GIT_COMMIT_SHA::$(git rev-parse HEAD)" + echo "GIT_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV + echo "GIT_COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV if: github.event_name == 'pull_request' - name: Set ENV for codeclimate (push) run: | - echo "::set-env name=GIT_BRANCH::${GITHUB_REF##*/}" - echo "::set-env name=GIT_COMMIT_SHA::$GITHUB_SHA" + echo "GIT_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV + echo "GIT_COMMIT_SHA=$GITHUB_SHA" >> $GITHUB_ENV if: github.event_name == 'push' - name: Code Climate Test Reporter uses: aktions/codeclimate-test-reporter@v1