From c7bdd5b71cd81a269f3a9985967872580f5d84cb Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Fri, 15 Oct 2021 19:30:32 +0200 Subject: [PATCH] Only run workflow for pull_requests Signed-off-by: Christian Wolf --- .github/workflows/publish-test-results.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-test-results.yml b/.github/workflows/publish-test-results.yml index fcfff9ec4..e620af728 100644 --- a/.github/workflows/publish-test-results.yml +++ b/.github/workflows/publish-test-results.yml @@ -13,9 +13,16 @@ jobs: runs-on: ubuntu-latest name: Test results if: >- - github.event.workflow_run.conclusion != 'skipped' + github.event.workflow_run.conclusion != 'skipped' && + github.event.workflow_run.event == 'pull_request' steps: + # - name: Debug output + # env: + # EVENT: ${{ toJSON(github.event) }} + # run: | + # echo "$EVENT" + - name: Download and Extract Artifacts env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}