Skip to content

Commit a6b851f

Browse files
committed
ci: fix codecov token secret
1 parent 65b6b84 commit a6b851f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ jobs:
5858
unit-tests:
5959
name: Unit Tests
6060
runs-on: ubuntu-latest
61+
env:
62+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6163

6264
steps:
6365
- name: Checkout
@@ -78,10 +80,10 @@ jobs:
7880
org.jacoco:jacoco-maven-plugin:0.8.12:report
7981
8082
- name: Upload coverage to Codecov
81-
if: ${{ secrets.CODECOV_TOKEN != '' }}
83+
if: ${{ env.CODECOV_TOKEN != '' }}
8284
uses: codecov/codecov-action@v5
8385
with:
84-
token: ${{ secrets.CODECOV_TOKEN }}
86+
token: ${{ env.CODECOV_TOKEN }}
8587
files: ./ezrtp-common/target/site/jacoco/jacoco.xml,./ezrtp-bukkit/target/site/jacoco/jacoco.xml,./ezrtp-paper/target/site/jacoco/jacoco.xml
8688
flags: unit
8789
name: ezrtp-unit

0 commit comments

Comments
 (0)