diff --git a/.github/workflows/CI-cygwin.yml b/.github/workflows/CI-cygwin.yml index 31557ecbcc7..b9ea30470da 100644 --- a/.github/workflows/CI-cygwin.yml +++ b/.github/workflows/CI-cygwin.yml @@ -4,7 +4,14 @@ name: CI-cygwin -on: [push,pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/CI-mingw.yml b/.github/workflows/CI-mingw.yml index 152e84902c2..cf64096f549 100644 --- a/.github/workflows/CI-mingw.yml +++ b/.github/workflows/CI-mingw.yml @@ -4,7 +4,14 @@ name: CI-mingw -on: [push,pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/CI-unixish-docker.yml b/.github/workflows/CI-unixish-docker.yml index 3558e6a5721..9bfc5a017b5 100644 --- a/.github/workflows/CI-unixish-docker.yml +++ b/.github/workflows/CI-unixish-docker.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: CI-unixish-docker -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/CI-unixish.yml b/.github/workflows/CI-unixish.yml index 856229f6dfe..44535cd077d 100644 --- a/.github/workflows/CI-unixish.yml +++ b/.github/workflows/CI-unixish.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: CI-unixish -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/CI-windows.yml b/.github/workflows/CI-windows.yml index 0b915571678..8589e43bb83 100644 --- a/.github/workflows/CI-windows.yml +++ b/.github/workflows/CI-windows.yml @@ -4,7 +4,14 @@ name: CI-windows -on: [push,pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/asan.yml b/.github/workflows/asan.yml index c29ecde8a4a..89dc81d7cfe 100644 --- a/.github/workflows/asan.yml +++ b/.github/workflows/asan.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: address sanitizer -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/buildman.yml b/.github/workflows/buildman.yml index 4bbdf779661..30cc5b16ad5 100644 --- a/.github/workflows/buildman.yml +++ b/.github/workflows/buildman.yml @@ -1,6 +1,13 @@ name: Build manual -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 7bcd8bd8e31..3eda1954994 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: clang-tidy -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 12d15855527..f486cf9e24f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,6 +1,13 @@ name: "CodeQL" -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b07c15811cd..5018f2c3b8a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: Coverage -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index ff3134b7ed5..3ae9ceb200f 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: format -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/scriptcheck.yml b/.github/workflows/scriptcheck.yml index 6ef6d90ee4c..d6223caafa0 100644 --- a/.github/workflows/scriptcheck.yml +++ b/.github/workflows/scriptcheck.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: scriptcheck -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/selfcheck.yml b/.github/workflows/selfcheck.yml index 8cd028f9af9..70cc147c40f 100644 --- a/.github/workflows/selfcheck.yml +++ b/.github/workflows/selfcheck.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: selfcheck -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/tsan.yml b/.github/workflows/tsan.yml index 876e1976141..850453aa105 100644 --- a/.github/workflows/tsan.yml +++ b/.github/workflows/tsan.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: thread sanitizer -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/ubsan.yml b/.github/workflows/ubsan.yml index 2a422710b74..2fc169dcc23 100644 --- a/.github/workflows/ubsan.yml +++ b/.github/workflows/ubsan.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: undefined behaviour sanitizers -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 1753e6f0acd..cf03ff89fa3 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -2,7 +2,14 @@ # Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners name: valgrind -on: [push, pull_request] +on: + push: + branches: + - 'main' + - 'releases/**' + tags: + - '2.*' + pull_request: permissions: contents: read