From c3c936c63962d2ea8b8478fc9158daa0bbc5dc52 Mon Sep 17 00:00:00 2001 From: soruh Date: Fri, 31 Jul 2026 14:27:09 +0200 Subject: [PATCH] make artifact upload runner conditional --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75f31b5..ad21def 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,8 +89,17 @@ jobs: --branch \ --html \ --output-dir target/coverage-report - - name: Upload HTML coverage report + - name: Upload HTML coverage report on GitHub + if: github.server_url == 'https://github.com' + uses: actions/upload-artifact@v7 + with: + name: coverage-report + path: target/coverage-report + if-no-files-found: error + retention-days: 14 + - name: Upload HTML coverage report on Gitea # Gitea does not support the artifact service used by v4 and later. + if: github.server_url != 'https://github.com' uses: actions/upload-artifact@v3 with: name: coverage-report