Skip to content

Commit a1ed5c9

Browse files
authored
Branch detection fix (#41)
* Bump versions * Added code coverage report to PR * Fixed code coverage action * Fixed code coverage action * test * test * test * Test branch coverage badge * Fixed coverage rounding * Fixed coverage rounding * Final configuration for code coverage * readme fix * Fixed branch detection
1 parent bc467ab commit a1ed5c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
COVERAGE=$(cat coverage/coverage.cobertura.xml | grep -oP '(?<=line-rate=")[^"]*' -m 1)
4848
COVERAGE=$(printf "%.0f\n" $(bc -l <<< "$COVERAGE*100"))
4949
echo "COVERAGE=$COVERAGE%" >> $GITHUB_ENV
50+
echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
5051
- name: Create the Badgegg
5152
uses: schneegans/[email protected]
5253
with:

0 commit comments

Comments
 (0)