From 04e8f634d48563bc8215269e155c0ab8bf05ae2c Mon Sep 17 00:00:00 2001 From: Julius Wiedemann <61197087+JuliusWiedemann@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:13:49 +0200 Subject: [PATCH] Fix main branch check for badge build --- .github/workflows/python-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 9a82135..9ec61f6 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -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/dynamic-badges-action@v1.7.0 with: auth: ${{ secrets.GIST_SECRET }} @@ -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/dynamic-badges-action@v1.7.0 with: auth: ${{ secrets.GIST_SECRET }} @@ -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/dynamic-badges-action@v1.7.0 with: auth: ${{ secrets.GIST_SECRET }}