diff options
author | Tim van der Lippe <TimvdLippe@users.noreply.github.com> | 2021-03-29 14:54:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 08:54:51 -0500 |
commit | 00236e848526ff546a47ea774af36a0425aad80f (patch) | |
tree | fda9fbc565a4cb9a0395d3aa6a4546aaa046e0be | |
parent | f4f4774d70dff209989bca4dc598c85d75a16567 (diff) | |
download | mockito-kotlin-00236e848526ff546a47ea774af36a0425aad80f.tar.gz |
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.
-rw-r--r-- | .github/workflows/ci.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c28a021..648d81b 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]') |