Skip to content

Commit e8a757c

Browse files
authored
Workaround for codecov-action bug with oidc (#4441)
1 parent 74afc71 commit e8a757c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/tox.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ jobs:
244244

245245
- name: Download artifacts
246246
uses: actions/download-artifact@v4
247+
continue-on-error: true # to allow rerunning this job
247248
with:
248249
name: logs.zip
249250
path: .
@@ -262,11 +263,7 @@ jobs:
262263
name: ${{ matrix.name }}
263264
# verbose: true # optional (default = false)
264265
fail_ci_if_error: true
265-
use_oidc: true # cspell:ignore oidc
266-
267-
- name: Check codecov.io status
268-
if: github.event_name == 'pull_request'
269-
uses: coactions/codecov-status@main
266+
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} # cspell:ignore oidc
270267

271268
- name: Decide whether the needed jobs succeeded or failed
272269
uses: re-actors/alls-green@release/v1
@@ -278,3 +275,4 @@ jobs:
278275
with:
279276
include-hidden-files: true
280277
delete-merged: true
278+
pattern: logs-*.zip

0 commit comments

Comments
 (0)