From ccbb7682a937e41747e6184b8bd5b0459d2318e0 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Wed, 9 Aug 2023 21:34:28 +0200 Subject: [PATCH] Also run release job on 5.x tags (#491) --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24db84fc..190c7f2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,8 +12,7 @@ on: branches: - main tags: - - 3.* - - 4.* + - 5.* pull_request: branches: - main @@ -81,7 +80,7 @@ jobs: needs: [build] # build job must pass before we can release if: github.event_name == 'push' - && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/3.') || startsWith(github.ref, 'refs/tags/4.')) + && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/5.')) && github.repository == 'mockito/mockito-kotlin' && !contains(toJSON(github.event.commits.*.message), '[skip release]')