fix(ci): mark the workflow as successful on coverage report error (#917)

relates to #908
This commit is contained in:
Ruben Hönle 2025-07-21 11:50:31 +02:00 committed by GitHub
parent ab232d6cb7
commit a930eda9f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,6 @@ jobs:
if: github.event_name == 'pull_request' # Do not run when workflow is triggered by push to main branch
runs-on: ubuntu-latest
needs: main
continue-on-error: true # Add this line to prevent pipeline failures in forks
permissions:
contents: read
actions: read # to download code coverage results from "main" job
@ -74,7 +73,8 @@ jobs:
steps:
- name: Check new code coverage
uses: fgrosse/go-coverage-report@v1.2.0
continue-on-error: true # Add this line to prevent pipeline failures in forks
with:
coverage-artifact-name: ${{ env.CODE_COVERAGE_ARTIFACT_NAME }}
coverage-file-name: ${{ env.CODE_COVERAGE_FILE_NAME }}
root-package: 'github.com/stackitcloud/terraform-provider-stackit'
root-package: 'github.com/stackitcloud/terraform-provider-stackit'