Skip to content

Commit 04e8f63

Browse files
Fix main branch check for badge build
1 parent 237ac6e commit 04e8f63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: .github/workflows/python-ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
echo "coverage=${COVERAGE_PERCENT}" >> $GITHUB_ENV
5555
5656
- name: Create mypy warning badge
57-
if: ${{ steps.branch_name.outputs.branch_name == 'main' }}
57+
if: ${{ github.ref_name == 'main' }}
5858
uses: schneegans/dynamic-badges-action@v1.7.0
5959
with:
6060
auth: ${{ secrets.GIST_SECRET }}
@@ -68,7 +68,7 @@ jobs:
6868
invertColorRange: true
6969

7070
- name: Create pylint badge
71-
if: ${{ steps.branch_name.outputs.branch_name == 'main' }}
71+
if: ${{ github.ref_name == 'main' }}
7272
uses: schneegans/dynamic-badges-action@v1.7.0
7373
with:
7474
auth: ${{ secrets.GIST_SECRET }}
@@ -81,7 +81,7 @@ jobs:
8181
maxColorRange: 9
8282

8383
- name: Create coverage badge
84-
if: ${{ steps.branch_name.outputs.branch_name == 'main' }}
84+
if: ${{ github.ref_name == 'main' }}
8585
uses: schneegans/dynamic-badges-action@v1.7.0
8686
with:
8787
auth: ${{ secrets.GIST_SECRET }}

0 commit comments

Comments
 (0)