Skip to content

Commit 0ecfbeb

Browse files
committed
Restrict publish test & coverage job on release
1 parent 9b86c57 commit 0ecfbeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173
if-no-files-found: error
174174

175175
publish-test-results:
176-
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.event_name != 'release' }}
176+
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.workflow != 'Release' }}
177177
name: "Publish Tests Results"
178178
needs: [ test ]
179179
runs-on: ubuntu-latest
@@ -199,7 +199,7 @@ jobs:
199199
report_individual_runs: true
200200

201201
coverage:
202-
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.event_name != 'release' }}
202+
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.workflow != 'Release' }}
203203
needs: [ test ]
204204
name: 'Coverage check'
205205
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)