From 7bc2bb605e316b497c684da47b5536a86a1e285f Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Sat, 8 Apr 2023 01:51:27 +0300 Subject: [PATCH] cicd: switch main workflow to work on any branch except `release/v*` prefixed The `release/v*` prefixed branches can be used only with a PR opened on such branches. The release branches only accepted in the main repo and not from forks. Also this workflow enables runining on every `push` unconditionaly. This leads to parallel runs on `push` and `pull_request` events and that would seen in PR checks also in parallel, but this is useful because checks that run on the `push` event runs on head ref while checks on the `pull_request` event runs on an additional `refs/pull//merge` ref what is created by Github on every push to a PR to check that it can be merged to a target branch without conflicts and passed checks. --- .github/workflows/CICD.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 666d3801..c8a9e4c3 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -4,9 +4,8 @@ on: workflow_dispatch: pull_request: push: - branches: - - master - - check/* + branches-ignore: + - release/v* concurrency: group: >