Skip to content

Commit

Permalink
build: only push to report repo and create badge for upstream (#1748)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Feb 10, 2024
1 parent d8ad9a0 commit 94feef0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ jobs:
path: reports_repo/${{ env.report_dir }}

- name: "Push to report repo"
if: ${{ github.ref == 'refs/heads/master' }}
if: |
github.repository_owner == 'nedbat'
&& github.ref == 'refs/heads/master'
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
Expand All @@ -259,7 +261,9 @@ jobs:
echo '[${{ env.url }}](${{ env.url }})' >> $GITHUB_STEP_SUMMARY
- name: "Create badge"
if: ${{ github.ref == 'refs/heads/master' }}
if: |
github.repository_owner == 'nedbat'
&& github.ref == 'refs/heads/master'
# https://gist.githubusercontent.com/nedbat/8c6980f77988a327348f9b02bbaf67f5
uses: schneegans/dynamic-badges-action@e9a478b16159b4d31420099ba146cdc50f134483
with:
Expand Down

0 comments on commit 94feef0

Please sign in to comment.