From 5f5ab6231ca9860c0a8c532355e82a1804fc0b79 Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Thu, 4 Apr 2024 19:35:44 +0200 Subject: [PATCH] Logging --- .github/workflows/coverage_comment.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/coverage_comment.yml b/.github/workflows/coverage_comment.yml index bd6b315ce..253f507b1 100644 --- a/.github/workflows/coverage_comment.yml +++ b/.github/workflows/coverage_comment.yml @@ -9,14 +9,20 @@ on: jobs: download_coverage: runs-on: ubuntu-latest - if: github.event.workflow_run.payload.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' + if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' steps: + - env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo "$GITHUB_CONTEXT" - name: Download artifact - uses: actions/download-artifact@v4 + id: download-artifact + uses: dawidd6/action-download-artifact@v3 with: + workflow: tests.yml + workflow_conclusion: success run_id: ${{ github.event.workflow_run.id }} name: code-coverage-results.md - path: . - name: Add PR comment uses: marocchino/sticky-pull-request-comment@v2 with: