From 3ee8c046c27edb8056e3f3c95fc349cfca75d375 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Wed, 1 Jan 2025 21:41:17 +0100 Subject: [PATCH] Run github workflow actions on release branches Running on the 'master' is not enough, actions also need to run on release branches. Signed-off-by: Bernd Schubert --- .github/workflows/abicheck.yml | 3 ++- .github/workflows/codeql.yml | 8 ++++++-- .github/workflows/codespell.yml | 8 ++++++-- .github/workflows/pr-ci.yml | 2 ++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/abicheck.yml b/.github/workflows/abicheck.yml index 23859d0..c75d912 100644 --- a/.github/workflows/abicheck.yml +++ b/.github/workflows/abicheck.yml @@ -5,10 +5,11 @@ on: push: branches: - master + - '[0-9]+.[0-9]+' # This will match branches like 3.17, 3.18, 4.0, etc. pull_request: branches: - master - + - '[0-9]+.[0-9]+' permissions: contents: read diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1cccb5f..b4c6fc1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,9 +13,13 @@ name: "CodeQL Advanced" on: push: - branches: [ "master" ] + branches: + - master + - '[0-9]+.[0-9]+' # This will match branches like 3.17, 3.18, 4.0, etc. pull_request: - branches: [ "master" ] + branches: + - master + - '[0-9]+.[0-9]+' jobs: analyze: diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 472bf6a..045bb20 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -3,9 +3,13 @@ name: Codespell on: push: - branches: [master] + branches: + - master + - '[0-9]+.[0-9]+' # This will match branches like 3.17, 3.18, 4.0, etc. pull_request: - branches: [master] + branches: + - master + - '[0-9]+.[0-9]+' permissions: contents: read diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 54d30ac..bec6166 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -4,9 +4,11 @@ on: push: branches: - master + - '[0-9]+.[0-9]+' # This will match branches like 3.17, 3.18, 4.0, etc. pull_request: branches: - master + - '[0-9]+.[0-9]+' permissions: contents: read -- 2.30.2