Skip to content

Commit

Permalink
Set target as 0 if target coverage file doesn't exist; Fix checkout r…
Browse files Browse the repository at this point in the history
…ef during commit_job
  • Loading branch information
cwlacewe committed Jul 22, 2024
1 parent 54ca213 commit 151c734
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_CI_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ jobs:
- name: Get Target Coverage Values
id: target_values
run: |
echo "cpp=$(cat .github/coverage/cpp.develop.coverage_value.txt)" >> $GITHUB_OUTPUT
echo "py=$(cat .github/coverage/python.develop.coverage_value.txt)" >> $GITHUB_OUTPUT
echo "cpp=$(cat .github/coverage/cpp.develop.coverage_value.txt || echo 0.00)" >> $GITHUB_OUTPUT
echo "py=$(cat .github/coverage/python.develop.coverage_value.txt || echo 0.00)" >> $GITHUB_OUTPUT
coverage_job:
name: Run Coverage
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_CI_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Checkout Source Branch
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
# fetch-depth: 0
# ref: ${{ github.event.pull_request.head.ref }}
# repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ secrets.FACELESS_TOKEN || github.token }}

- run: mkdir -p ${{ env.DOCKER_ARTIFACT_DIR }}
Expand Down

0 comments on commit 151c734

Please sign in to comment.