fix badge coverage generation
This commit is contained in:
parent
af4bb350c0
commit
de87d0d951
1 changed files with 4 additions and 2 deletions
6
.github/workflows/ci_hubtest.yml
vendored
6
.github/workflows/ci_hubtest.yml
vendored
|
@ -12,6 +12,8 @@ jobs:
|
|||
build:
|
||||
name: Hub tests
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
BRANCH_REF: ${{ github.ref }}
|
||||
steps:
|
||||
- name: Set up Go 1.16
|
||||
uses: actions/setup-go@v1
|
||||
|
@ -51,7 +53,7 @@ jobs:
|
|||
echo "PARSER_BADGE_COLOR=$(if [ $PARSERS_COV_NUMBER -lt '70' ]; then echo 'red'; else echo 'green'; fi)" >> $GITHUB_ENV
|
||||
echo "SCENARIO_BADGE_COLOR=$(if [ $SCENARIOS_COV_NUMBER -lt '70' ]; then echo 'red'; else echo 'green'; fi)" >> $GITHUB_ENV
|
||||
- name: Create Parsers badge
|
||||
if: github.ref == 'ref/head/master'
|
||||
if: ${{ env.BRANCH_REF }} == 'ref/head/master'
|
||||
uses: schneegans/dynamic-badges-action@v1.1.0
|
||||
with:
|
||||
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
||||
|
@ -61,7 +63,7 @@ jobs:
|
|||
message: ${{ env.PARSERS_COV }}
|
||||
color: ${{ env.SCENARIO_BADGE_COLOR }}
|
||||
- name: Create Scenarios badge
|
||||
if: github.ref == 'ref/head/master'
|
||||
if: ${{ env.BRANCH_REF }} == 'ref/head/master'
|
||||
uses: schneegans/dynamic-badges-action@v1.1.0
|
||||
with:
|
||||
auth: ${{ secrets.GIST_BADGES_SECRET }}
|
||||
|
|
Loading…
Reference in a new issue