Skip to content

Commit 00236e8

Browse files
authored
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.
1 parent f4f4774 commit 00236e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
push:
1212
branches:
1313
- main
14+
tags:
15+
- 3.*
1416
pull_request:
1517
branches:
1618
- main
@@ -78,7 +80,7 @@ jobs:
7880
needs: [build] # build job must pass before we can release
7981

8082
if: github.event_name == 'push'
81-
&& github.ref == 'refs/heads/main'
83+
&& (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/3.'))
8284
&& github.repository == 'mockito/mockito-kotlin'
8385
&& !contains(toJSON(github.event.commits.*.message), '[skip release]')
8486

0 commit comments

Comments
 (0)