Skip to content

Commit 7365423

Browse files
committed
ci: use coverage environment
1 parent d9a506a commit 7365423

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/coverage.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,27 @@ env:
88
CARGO_TERM_COLOR: always
99

1010
jobs:
11+
secrets:
12+
name: Secrets
13+
environment: coverage
14+
runs-on: ubuntu-latest
15+
16+
outputs:
17+
continue: ${{ steps.check.outputs.continue }}
18+
19+
steps:
20+
- id: check
21+
name: Check
22+
env:
23+
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
24+
if: "${{ env.CODECOV_TOKEN != '' }}"
25+
run: echo "continue=true" >> $GITHUB_OUTPUT
26+
1127
report:
1228
name: Report
29+
environment: coverage
30+
needs: secrets
31+
if: needs.secrets.outputs.continue == 'true'
1332
runs-on: ubuntu-latest
1433
env:
1534
CARGO_INCREMENTAL: "0"

0 commit comments

Comments
 (0)