diff --git a/workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-go-task.yml b/workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-go-task.yml index 79fa2f74..7a2e5d80 100644 --- a/workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-go-task.yml +++ b/workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-go-task.yml @@ -73,4 +73,4 @@ jobs: with: file: ${{ matrix.module.path }}coverage_unit.txt flags: ${{ matrix.module.codecov-flags }} - fail_ci_if_error: true + fail_ci_if_error: ${{ github.repository == 'REPO_OWNER/REPO_NAME' }} diff --git a/workflow-templates/test-go-task.md b/workflow-templates/test-go-task.md index 210feb1e..fc152b85 100644 --- a/workflow-templates/test-go-task.md +++ b/workflow-templates/test-go-task.md @@ -25,6 +25,8 @@ Configure the version of Go used for development of the project in the `env.GO_V If the project contains Go modules in paths other than the root of the repository, add their paths to the [job matrix](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix) in `check-go-task.yml` at `jobs.test.strategy.matrix.module[].path` and the [Codecov flag](https://docs.codecov.com/docs/flags) to group their data under at `jobs.test.strategy.matrix.module[].codecov-flags` +Replace `REPO_OWNER/REPO_NAME` with the repository's name (e.g., `arduino/arduino-cli`) in the `codecov/codecov-action` action's `fail_ci_if_error` input in `test-go-task.yml`. + #### `.gitignore` Add the following to `.gitignore`: diff --git a/workflow-templates/test-go-task.yml b/workflow-templates/test-go-task.yml index 79fa2f74..7a2e5d80 100644 --- a/workflow-templates/test-go-task.yml +++ b/workflow-templates/test-go-task.yml @@ -73,4 +73,4 @@ jobs: with: file: ${{ matrix.module.path }}coverage_unit.txt flags: ${{ matrix.module.codecov-flags }} - fail_ci_if_error: true + fail_ci_if_error: ${{ github.repository == 'REPO_OWNER/REPO_NAME' }}