From 00236e848526ff546a47ea774af36a0425aad80f Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Mon, 29 Mar 2021 14:54:51 +0100 Subject: [PATCH] Run release procedure on tag pushes (#425) Running CI actions on tags requires tags to be explicitly listed per the documentation in https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#example-including-branches-and-tags Also update the logic to make sure we run on tags, not just on the main branch pushes. --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c28a021c..648d81b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,8 @@ on: push: branches: - main + tags: + - 3.* pull_request: branches: - main @@ -78,7 +80,7 @@ jobs: needs: [build] # build job must pass before we can release if: github.event_name == 'push' - && github.ref == 'refs/heads/main' + && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/3.')) && github.repository == 'mockito/mockito-kotlin' && !contains(toJSON(github.event.commits.*.message), '[skip release]')