Skip to content

Commit 7fa8ea1

Browse files
committed
feat: optimize ci
1 parent acb91f3 commit 7fa8ea1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/merge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ jobs:
2929
run: mvn clean install -B -U --file pom.xml
3030
- name: Upload coverage reports to Codecov
3131
uses: codecov/codecov-action@v3
32-
env:
33-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
flags: Merge
35+
name: Merge-Coverage

.github/workflows/pull_request.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ jobs:
3131
run: mvn clean install -B -U --file pom.xml
3232
- name: Upload coverage reports to Codecov
3333
uses: codecov/codecov-action@v3
34-
env:
35-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
36+
flags: pull-request
37+
name: PR-Coverage

0 commit comments

Comments
 (0)