Skip to content

Commit

Permalink
Deduplicate build action runs
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
jhiemstrawisc committed Dec 9, 2024
1 parent c72532a commit 88d57b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 88d57b4

Please sign in to comment.