CI: ignore master branch for push events
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 25 May 2023 11:52:03 +0000 (13:52 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 24 Oct 2023 15:11:31 +0000 (17:11 +0200)
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@gmail.com>
(cherry picked from commit f5a5ce8822e9add9627ecb6ea289c8de2b8a76a9)

.github/workflows/kernel.yml
.github/workflows/packages.yml
.github/workflows/push-containers.yml
.github/workflows/toolchain.yml
.github/workflows/tools.yml

index b918b2d88e431e459e761269399086dd504a4137..6be7ef28c2f4e01ca696512b9fffba8eb2f00e1e 100644 (file)
@@ -17,6 +17,8 @@ on:
       - 'include/kernel*'
       - 'package/kernel/**'
       - 'target/linux/**'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
index d8270cbb820747f2fc473324385292d8043a7250..d4d3565cd70b3d481dd6f5656aa28e2554fc71b8 100644 (file)
@@ -19,6 +19,8 @@ on:
       - 'package/**'
       - 'target/linux/generic/**'
       - 'toolchain/**'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
index 3cc08dbef88150724814911ea69768aeb7765943..71b9e4725315231853b141a20d97ab9bed8cd078 100644 (file)
@@ -13,6 +13,8 @@ on:
       - '.github/workflows/build.yml'
       - '.github/workflows/toolchain.yml'
       - '.github/workflows/Dockerfile.toolchain'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
index 5755ca25b9db4a7487d321e8e8d79bb49076153d..54e31069e6f7d2ea5e75226d5dbfa9fba880a29f 100644 (file)
@@ -11,6 +11,8 @@ on:
       - '.github/workflows/build.yml'
       - '.github/workflows/toolchain.yml'
       - 'toolchain/**'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read
index 76ebdc664b89ae5409e576d44600a6c5c9e6c6e4..83bf5e98f5ad0c3d02a7c112b90e4816a5c90b62 100644 (file)
@@ -13,6 +13,8 @@ on:
       - 'tools/**'
       - '.github/workflows/build-tools.yml'
       - '.github/workflows/tools.yml'
+    branches-ignore:
+      - master
 
 permissions:
   contents: read