Skip to content

Commit c7e142b

Browse files
committed
ci: fix?
1 parent 89c4fd5 commit c7e142b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
run: |
5959
octocov badge coverage --out ${{ github.workspace }}/${{ steps.filename.outputs.filename }}
6060
- name: upload badge to artifact
61-
if: github.ref == "refs/heads/main"
6261
uses: actions/upload-artifact@v4
6362
with:
6463
path: ${{ steps.filename.outputs.filename }}
@@ -67,6 +66,7 @@ jobs:
6766

6867
upload-coverage-badge:
6968
runs-on: ubuntu-latest
69+
if: startsWith(github.ref, 'refs/heads/main')
7070
needs: themis
7171
steps:
7272
- name: download artifacts
@@ -84,7 +84,7 @@ jobs:
8484

8585
deploy-to-github-pages:
8686
runs-on: ubuntu-latest
87-
if: github.ref == "refs/heads/main"
87+
if: startsWith(github.ref, 'refs/heads/main')
8888
needs: upload-coverage-badge
8989
permissions:
9090
pages: write

0 commit comments

Comments
 (0)