ci: [OCISDEV-1429] skip acceptance-coverage on docs-only PRs (#12963)
acceptance-coverage ran unconditionally (if: always()) even when its upstream test jobs (local-api-tests, cli-tests, ldap-pool-tests, core-api-tests) were skipped for docs-only PRs, per detect-changes. With no coverage artifacts to download, actions/download-artifact never creates the target directory and the subsequent `go tool covdata textfmt` step fails with "no such file or directory", blocking merge of docs-only PRs. Skip the job using the same docs-only guard build-and-test already uses. Signed-off-by: Lukas Hirt <info@hirt.cz>
This commit is contained in:
1 parent
b99e8ff0a7
commit
7349dda508
1 file changed
+2
-2
@@ -860,8 +860,8 @@ jobs:
|
||||
|
||||
acceptance-coverage:
|
||||
name: acceptance-coverage
|
||||
needs: [local-api-tests, cli-tests, ldap-pool-tests, core-api-tests]
|
||||
if: always() && github.event_name == 'pull_request'
|
||||
needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests]
|
||||
if: always() && github.event_name == 'pull_request' && needs.detect-changes.outputs.docs-only != 'true'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GOCOVERDIR: ${{ github.workspace }}/coverage-reports
|
||||
|
||||
Reference in new issue
Block a user