Skip to content

Commit 12f7d2c

Browse files
committed
github: don't upload to CodeCov if token unset
1 parent 47d6a0e commit 12f7d2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
PROJECT_NAME_UNDERSCORE: masto_thread_renderer
4848
CARGO_INCREMENTAL: 0
4949
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests
50+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5051
runs-on: ubuntu-latest
5152
steps:
5253
- uses: actions/checkout@v4
@@ -86,6 +87,7 @@ jobs:
8687
token: ${{ secrets.CODECOV_TOKEN }}
8788
files: ./lcov.info
8889
fail_ci_if_error: true
90+
if: ${{ env.CODECOV_TOKEN != '' }}
8991

9092
lint:
9193
name: Lint

0 commit comments

Comments
 (0)