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