Skip to content

Commit c937f1e

Browse files
committed
Generate badges on new tag
1 parent 47a87ff commit c937f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
anybadge --overwrite --value="${{ steps.ruff.outcome }}" --label=ruff --file=badges/ruff.svg success=green failure=red
3737
anybadge --overwrite --label=version --value="v$(poetry version --short)" --file=badges/version.svg --color='green'
3838
- name: Publish badges to GitHub Pages
39-
if: (success() || failure()) && (github.ref_name == github.event.repository.default_branch)
39+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
4040
uses: JamesIves/github-pages-deploy-action@v4
4141
with:
4242
folder: badges/
@@ -64,7 +64,7 @@ jobs:
6464
anybadge --overwrite --value="${{ steps.pytest.outcome }}" --label=pytest --file=badges/pytest.svg success=green failure=red
6565
anybadge --overwrite --value="$(coverage report --format=total)" --file=badges/coverage.svg coverage
6666
- name: Publish badges to GitHub Pages
67-
if: (success() || failure()) && (github.ref_name == github.event.repository.default_branch)
67+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6868
uses: JamesIves/github-pages-deploy-action@v4
6969
with:
7070
folder: badges/

0 commit comments

Comments
 (0)