From 01db5bae004a977a2280f992f7422a89fe9dfba7 Mon Sep 17 00:00:00 2001 From: Lennart Reiher Date: Fri, 5 Jul 2024 09:47:07 +0000 Subject: [PATCH] avoid duplicate actions on pr/push by only running on push to main https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/ --- .github/workflows/github.yml | 8 +++++++- .github/workflows/gitlab.yml | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index 472329c..e99880f 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -1,6 +1,12 @@ name: GitHub -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: diff --git a/.github/workflows/gitlab.yml b/.github/workflows/gitlab.yml index f2bb271..9cf1ea9 100644 --- a/.github/workflows/gitlab.yml +++ b/.github/workflows/gitlab.yml @@ -1,6 +1,12 @@ name: GitLab -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: