Skip to content

Commit 82ab22c

Browse files
committed
ci: code coverage upload with old GIT_BRANCH env
reverted to the env that we used before the redesign of the CI jobs
1 parent a1dcea8 commit 82ab22c

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/pull-request-update-or-push-tag.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
env:
1616
GIT_COMMIT_SHA: ${{ github.sha }}
17+
GIT_BRANCH: ${{ github.head_ref }}
1718
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_ID }}
1819
steps:
1920
- name: Checkout repository files
2021
uses: actions/checkout@v4
2122

22-
- name: Extract tag (release)
23-
if: ${{ github.event.ref != '' }}
24-
run: echo "GIT_BRANCH=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
25-
26-
- name: Extract tag (pull request)
27-
if: ${{ github.event.ref == '' }}
28-
run: echo "GIT_BRANCH=pr-${{ github.event.number }}" >> $GITHUB_ENV
29-
3023
- name: Install Code Climate Test Reporter
3124
run: |
3225
curl -Lo cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
@@ -118,19 +111,12 @@ jobs:
118111
- test
119112
env:
120113
GIT_COMMIT_SHA: ${{ github.sha }}
114+
GIT_BRANCH: ${{ github.head_ref }}
121115
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_ID }}
122116
steps:
123117
- name: Checkout repository files
124118
uses: actions/checkout@v4
125119

126-
- name: Extract tag (release)
127-
if: ${{ github.event.ref != '' }}
128-
run: echo "GIT_BRANCH=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
129-
130-
- name: Extract tag (pull request)
131-
if: ${{ github.event.ref == '' }}
132-
run: echo "GIT_BRANCH=pr-${{ github.event.number }}" >> $GITHUB_ENV
133-
134120
- name: Download coverage reports
135121
uses: actions/download-artifact@v4
136122
with:

0 commit comments

Comments
 (0)