diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index 072f3c30035..8abb9c4b2eb 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ main ] push: - branches: [ main, actions ] + branches: [ main ] schedule: # Run buildAndTest workflow once a day - cron: '* 12 * * *' diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 67aa7d404c5..edf18025084 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,10 +2,11 @@ name: Lint -on: [pull_request, push] +on: [pull_request] jobs: clang-format: + # This job can only be run on pull_request since GITHUB_BASE_REF is only set on PR. if: "github.event_name == 'pull_request'" runs-on: ubuntu-latest steps: