Skip to content

Commit

Permalink
Catch mistakes for uploading the coverage_report directory #24
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoHuebner committed Mar 17, 2024
1 parent d2832e7 commit 131d23c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
- name: Prepare files
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
set -e
mkdir -p output/publish
cp assets/coverage_badge.json output/publish/
cp -r assets/coverage_report output/publish/
Expand All @@ -135,9 +136,3 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
keep_files: true
- name: Delete unwanted file
run: |
git checkout gh-pages
git rm coverage_badge.json
git commit -m "Remove accidentally pushed file"
git push origin gh-pages

0 comments on commit 131d23c

Please sign in to comment.