From 88d57b464945dc7f17c171a7b27cb4f8176f0be7 Mon Sep 17 00:00:00 2001 From: Justin Hiemstra Date: Mon, 9 Dec 2024 15:30:35 -0600 Subject: [PATCH] Deduplicate build action runs The previous action trigger of `on: [push, pull_request]` looked like it was double dipping -- every time you pushed a new set of commits to a pull request, the workflow triggered twice. This instead runs the actions on new pull requests, or on synchronize/reopened events. The synchronize event occurs when new commits are received. Additionally, this still runs the test whenever someone pushes to master, which shouldn't be done... --- .github/workflows/build-containers.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml index e7d7932e..298815ed 100644 --- a/.github/workflows/build-containers.yml +++ b/.github/workflows/build-containers.yml @@ -1,6 +1,11 @@ name: Build SPRAS Containers -on: [push, pull_request] +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: + - master jobs: build-and-remove-omics1: