Skip to content

Commit

Permalink
Fix main branch check for badge build
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliusWiedemann authored Jun 14, 2024
1 parent 237ac6e commit 04e8f63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
echo "coverage=${COVERAGE_PERCENT}" >> $GITHUB_ENV
- name: Create mypy warning badge
if: ${{ steps.branch_name.outputs.branch_name == 'main' }}
if: ${{ github.ref_name == 'main' }}
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
Expand All @@ -68,7 +68,7 @@ jobs:
invertColorRange: true

- name: Create pylint badge
if: ${{ steps.branch_name.outputs.branch_name == 'main' }}
if: ${{ github.ref_name == 'main' }}
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
Expand All @@ -81,7 +81,7 @@ jobs:
maxColorRange: 9

- name: Create coverage badge
if: ${{ steps.branch_name.outputs.branch_name == 'main' }}
if: ${{ github.ref_name == 'main' }}
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
Expand Down

0 comments on commit 04e8f63

Please sign in to comment.