From c63be24c48183fd9b10981ab315c8012c54a8031 Mon Sep 17 00:00:00 2001 From: selimnairb Date: Fri, 6 Dec 2024 11:16:26 -0500 Subject: [PATCH] CI: Attempted fix for not attempting to publish test coverage from PRs --- .github/workflows/testreporting.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testreporting.yml b/.github/workflows/testreporting.yml index 5ee706b64d..1b08552afa 100644 --- a/.github/workflows/testreporting.yml +++ b/.github/workflows/testreporting.yml @@ -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] @@ -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