From d08343538947469bfe3cb19af4f70a5326fe373d Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Thu, 25 Jul 2024 23:46:51 +0300 Subject: [PATCH] misc/github: Update workflow. Run code-size after PRs only. --- .github/workflows/code-size-report.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/code-size-report.yml b/.github/workflows/code-size-report.yml index 2270ef334..c9cd0dce6 100644 --- a/.github/workflows/code-size-report.yml +++ b/.github/workflows/code-size-report.yml @@ -8,7 +8,10 @@ on: jobs: post-code-report: - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: > + github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion == 'success' + runs-on: ubuntu-latest steps: - name: '↓ Download code size report'