From f5a5ce8822e9add9627ecb6ea289c8de2b8a76a9 Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Thu, 25 May 2023 13:52:03 +0200 Subject: [PATCH] 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 --- .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 fcbaf96788..eb6ffd30c1 100644 --- a/.github/workflows/push-containers.yml +++ b/.github/workflows/push-containers.yml @@ -12,6 +12,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 -- 2.30.2