From 27a82938a745e80d3c93c753a96beeee40169505 Mon Sep 17 00:00:00 2001 From: Roger Howell Date: Mon, 5 Apr 2021 20:18:54 +0100 Subject: [PATCH] Update build.yml to trigger GHA checks only on pushes to main and PRs Closes #112 --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8344141..5a394a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,16 @@ ## JBIJPPTPL name: Build -on: [push, pull_request] +on: + # Trigger the workflow on pushes to only the 'main' branch + # (this avoids duplicate checks being run e.g. for dependabot pull requests) + push: + branches: + - main + # Trigger the workflow on any pull request + pull_request: + + jobs: # Run Gradle Wrapper Validation Action to verify the wrapper's checksum