Skip to content

Commit 1d07d6c

Browse files
committed
ci: Set CI_COMMIT_SHA & CI_COMMIT_BRANCH
1 parent 111d3d6 commit 1d07d6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/aggregate_tested_versions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929

3030
- name: Run aggregation script
3131
env:
32-
CI_COMMIT_SHA: ${{ github.sha }}
33-
CI_COMMIT_BRANCH: ${{ github.ref }}
3432
CIRCLECI_TOKEN: ${{ secrets.CIRCLECI_TOKEN }}
3533
run: |
34+
export CI_COMMIT_SHA=$(git rev-parse HEAD)
35+
export CI_COMMIT_BRANCH=$(git branch --contains "${CI_COMMIT_SHA}" | grep -v 'detached' | head -n 1 | awk '{print $2}')
3636
./.github/scripts/aggregate_tested_versions.sh
3737
3838
- name: Show aggregated versions

0 commit comments

Comments
 (0)