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>
Thu, 25 May 2023 11:57:17 +0000 (13:57 +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>
.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 fcbaf96788d77df12c3c5afb23127546f7af5b01..eb6ffd30c1e648db5bcad75bb9f867b998981f13 100644 (file)
@@ -12,6 +12,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