Skip to content

Commit

Permalink
Removed set-env in favour of new patterns by Gh
Browse files Browse the repository at this point in the history
  • Loading branch information
priyank-purohit committed Jun 21, 2024
1 parent 1c0b2ec commit 4deafa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4deafa5

Please sign in to comment.