[openwrt/openwrt] CI: ignore master branch for push events

LEDE Commits lede-commits at lists.infradead.org
Tue Oct 24 08:14:36 PDT 2023


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/f666723f6d4b480da3ddce75f20fec965c72120c

commit f666723f6d4b480da3ddce75f20fec965c72120c
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu May 25 13:52:03 2023 +0200

    CI: ignore master branch for push events
    
    Due to problem with migrating from master to main as the default branch
    and downstream project still requiring the master branch to be present,
    we currently have for push events double CI runs, one for main and one
    for master. To solve this ignore any push event to the master branch for
    every workflow that react on push events.
    
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
    (cherry picked from commit f5a5ce8822e9add9627ecb6ea289c8de2b8a76a9)
---
 .github/workflows/kernel.yml          | 2 ++
 .github/workflows/packages.yml        | 2 ++
 .github/workflows/push-containers.yml | 2 ++
 .github/workflows/toolchain.yml       | 2 ++
 .github/workflows/tools.yml           | 2 ++
 5 files changed, 10 insertions(+)

diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml
index b918b2d88e..6be7ef28c2 100644
--- a/.github/workflows/kernel.yml
+++ b/.github/workflows/kernel.yml
@@ -17,6 +17,8 @@ on:
       - 'include/kernel*'
       - 'package/kernel/**'
       - 'target/linux/**'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index d8270cbb82..d4d3565cd7 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -19,6 +19,8 @@ on:
       - 'package/**'
       - 'target/linux/generic/**'
       - 'toolchain/**'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
diff --git a/.github/workflows/push-containers.yml b/.github/workflows/push-containers.yml
index 3cc08dbef8..71b9e47253 100644
--- a/.github/workflows/push-containers.yml
+++ b/.github/workflows/push-containers.yml
@@ -13,6 +13,8 @@ on:
       - '.github/workflows/build.yml'
       - '.github/workflows/toolchain.yml'
       - '.github/workflows/Dockerfile.toolchain'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
diff --git a/.github/workflows/toolchain.yml b/.github/workflows/toolchain.yml
index 5755ca25b9..54e31069e6 100644
--- a/.github/workflows/toolchain.yml
+++ b/.github/workflows/toolchain.yml
@@ -11,6 +11,8 @@ on:
       - '.github/workflows/build.yml'
       - '.github/workflows/toolchain.yml'
       - 'toolchain/**'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index 76ebdc664b..83bf5e98f5 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -13,6 +13,8 @@ on:
       - 'tools/**'
       - '.github/workflows/build-tools.yml'
       - '.github/workflows/tools.yml'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read




More information about the lede-commits mailing list