make artifact upload runner conditional
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user