fix(ci): mark the workflow as successful on coverage report error (#917)
relates to #908
This commit is contained in:
parent
ab232d6cb7
commit
a930eda9f5
1 changed files with 2 additions and 2 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -66,7 +66,6 @@ jobs:
|
||||||
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
|
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: main
|
needs: main
|
||||||
continue-on-error: true # Add this line to prevent pipeline failures in forks
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
actions: read # to download code coverage results from "main" job
|
actions: read # to download code coverage results from "main" job
|
||||||
|
|
@ -74,6 +73,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check new code coverage
|
- name: Check new code coverage
|
||||||
uses: fgrosse/go-coverage-report@v1.2.0
|
uses: fgrosse/go-coverage-report@v1.2.0
|
||||||
|
continue-on-error: true # Add this line to prevent pipeline failures in forks
|
||||||
with:
|
with:
|
||||||
coverage-artifact-name: ${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
|
coverage-artifact-name: ${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
|
||||||
coverage-file-name: ${{ env.CODE_COVERAGE_FILE_NAME }}
|
coverage-file-name: ${{ env.CODE_COVERAGE_FILE_NAME }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue