diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-25 13:52:03 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-10-24 17:11:31 +0200 |
commit | f666723f6d4b480da3ddce75f20fec965c72120c (patch) | |
tree | c793249ea2bda51c11a39a28423a4e4aa8a74193 | |
parent | e83384b87e2d3789800084bedc7ae3be2b203663 (diff) | |
download | upstream-f666723f6d4b480da3ddce75f20fec965c72120c.tar.gz upstream-f666723f6d4b480da3ddce75f20fec965c72120c.tar.bz2 upstream-f666723f6d4b480da3ddce75f20fec965c72120c.zip |
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@gmail.com>
(cherry picked from commit f5a5ce8822e9add9627ecb6ea289c8de2b8a76a9)
-rw-r--r-- | .github/workflows/kernel.yml | 2 | ||||
-rw-r--r-- | .github/workflows/packages.yml | 2 | ||||
-rw-r--r-- | .github/workflows/push-containers.yml | 2 | ||||
-rw-r--r-- | .github/workflows/toolchain.yml | 2 | ||||
-rw-r--r-- | .github/workflows/tools.yml | 2 |
5 files changed, 10 insertions, 0 deletions
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 |