diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69f03bb..2f764b1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,12 +4,13 @@ # against bad commits. name: Build -on: [pull_request, push] +on: + pull_request: + push: + branches: [main] jobs: build: - # Skip if it's a PR from the same repo (as push will handle it) - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository strategy: matrix: # Use these Java versions diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 37ef063..6db7890 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,10 +1,11 @@ name: Lint -on: [pull_request, push] +on: + pull_request: + push: + branches: [main] jobs: lint: - # Skip if it's a PR from the same repo (as push will handle it) - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-22.04 steps: - name: Checkout repository diff --git a/.github/workflows/test-js.yml b/.github/workflows/test-js.yml index 18f2818..7cb5195 100644 --- a/.github/workflows/test-js.yml +++ b/.github/workflows/test-js.yml @@ -1,10 +1,11 @@ name: Test (JavaScript) -on: [pull_request, push] +on: + pull_request: + push: + branches: [main] jobs: test: - # Skip if it's a PR from the same repo (as push will handle it) - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-22.04 steps: - name: Checkout repository