Skip to content

Commit

Permalink
Also run release job on 5.x tags (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimvdLippe committed Aug 9, 2023
1 parent 3979104 commit ccbb768
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -12,8 +12,7 @@ on:
branches:
- main
tags:
- 3.*
- 4.*
- 5.*
pull_request:
branches:
- main
Expand Down Expand Up @@ -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]')

Expand Down

0 comments on commit ccbb768

Please sign in to comment.