diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-15 16:53:39 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-02-15 18:19:43 -0500 |
commit | 8c84b3683795dda1cb28bbf436d89dd8c3293aef (patch) | |
tree | f1d921e73da9ba610bdec66156f7cde01f8bd383 | |
parent | c0921466d3d235f10be333da1f9cf523f4e2e24c (diff) | |
download | python-coveragepy-git-nedbat/metacov-publish.tar.gz |
Try pushing to another reponedbat/metacov-publish
-rw-r--r-- | .github/workflows/coverage.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 9629463e..59e7ccc6 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -119,3 +119,22 @@ jobs: with: name: html_report path: htmlcov + + - name: Pushes to another repository + uses: sebastian-palma/github-action-push-to-another-repository@allow-creating-destination-directory + env: + API_TOKEN_GITHUB: ${{ secrets.COVERAGE_REPORTS_TOKEN }} + with: + source-directory: 'htmlcov' + destination-github-username: 'nedbat' + destination-repository-name: 'coverage-reports' + destination-repository-directory: 'reports/${{ github.sha }}' + empty-repository: false + create-destination-directory: true + target-branch: main + commit-message: "Coverage report for ${{ github.sha }}" + user-email: ned@nedbatchelder.com + + - name: Show link to report + run: | + echo "https://nedbat.github.io/coverage-reports/reports/${{ github.sha }}/htmlcov" |