From ca8d73a0c18f776b67232719742e1d6c6896a235 Mon Sep 17 00:00:00 2001 From: Matt Lord Date: Sun, 22 Oct 2023 14:12:25 -0400 Subject: [PATCH] Only run both on merges to main Signed-off-by: Matt Lord --- .github/workflows/static_checks_etc.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/static_checks_etc.yml b/.github/workflows/static_checks_etc.yml index e9d423eabcb..f4690c7d55f 100644 --- a/.github/workflows/static_checks_etc.yml +++ b/.github/workflows/static_checks_etc.yml @@ -34,7 +34,7 @@ jobs: uses: actions/checkout@v3 - name: Run FOSSA scan and upload build data - if: steps.skip-workflow.outputs.skip-workflow == 'false' + if: github.ref == 'refs/heads/main' uses: fossa-contrib/fossa-action@v2 with: fossa-api-key: ${{secrets.fossaApiKey}} @@ -222,6 +222,7 @@ jobs: exit 1 - name: Upload coverage reports to Codecov + if: github.ref == 'refs/heads/main' timeout-minutes: 30 uses: codecov/codecov-action@v3 env: