Skip to content

Commit

Permalink
CI: Attempted fix for not attempting to publish test coverage from PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
selimnairb committed Dec 6, 2024
1 parent 600a5a1 commit c63be24
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/testreporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
jobs:
build:
env:
PUBLISH_COVERAGE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
PUBLISH_COVERAGE: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
strategy:
matrix:
os: [ubuntu-22.04]
Expand All @@ -40,6 +40,11 @@ jobs:

steps:

- name: Display GitHub context variables
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

# Get current banch name to use it as dest directory
- name: Extract branch name
shell: bash
Expand Down

0 comments on commit c63be24

Please sign in to comment.