From 48b54e4578c03fb2bdd72d93eeecc7789084aec1 Mon Sep 17 00:00:00 2001 From: ffenix113 <1863154+ffenix113@users.noreply.github.com> Date: Tue, 31 Jan 2023 16:55:37 +0100 Subject: [PATCH 1/2] chore: do not run CI on release --- .github/workflows/skip-ci-on-release.yml | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/skip-ci-on-release.yml diff --git a/.github/workflows/skip-ci-on-release.yml b/.github/workflows/skip-ci-on-release.yml new file mode 100644 index 0000000..fd39a14 --- /dev/null +++ b/.github/workflows/skip-ci-on-release.yml @@ -0,0 +1,25 @@ +# This workflow skips all heavy stuff for release branches +name: Skip Tests + +on: + push: + branches: + - 'release-**' + tags-ignore: + - '**' + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + reviewdog: + runs-on: ubuntu-latest + steps: + - run: 'echo "Not required"' + + basic: + name: Run tests + runs-on: ubuntu-latest + steps: + - run: 'echo "Not required"' From c2d02d1a2b5fb5f6ce8aa7a71934f77d2cd30094 Mon Sep 17 00:00:00 2001 From: ffenix113 <1863154+ffenix113@users.noreply.github.com> Date: Tue, 31 Jan 2023 17:02:51 +0100 Subject: [PATCH 2/2] do not run on release branches --- .github/workflows/ci.yaml | 5 +++-- .github/workflows/reviewdog.yml | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6aff037..b1e02a6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,9 +1,10 @@ name: CI on: - pull_request: push: - branches: [master] + branches: + - '**' + - '!release-**' concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 7be0117..5674995 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,6 +1,9 @@ name: reviewdog on: - pull_request: + push: + branches: + - '**' + - '!release-**' concurrency: group: ${{ github.workflow }}-${{ github.head_ref }}