Skip to content

Commit

Permalink
Fixed: file path error and env error
Browse files Browse the repository at this point in the history
  • Loading branch information
AkaLrz committed Aug 17, 2024
1 parent 2d0d88a commit 0c66965
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/jacoco.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Coverage

on: [push, pull_request]
workflow_call:
secrets:
codecov_token:
required: true

jobs:
build:
Expand Down Expand Up @@ -47,4 +51,5 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: ./target/mergeReport/jacoco.xml
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
#!/bin/bash

# Get file directory and output directory
current="${{ github.workspace }}"

## Use loop to get root directory, if module doesn't change, the loop needn't change
#for i in {1..5}; do
# current=$(dirname "$current")
#done

project=$current
target=$project/target
project="$1"
target="$project/target"

echo $target
# Create corresponding folders
Expand Down

0 comments on commit 0c66965

Please sign in to comment.