File tree Expand file tree Collapse file tree 5 files changed +21
-1
lines changed Expand file tree Collapse file tree 5 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 6
6
tags : ['*']
7
7
8
8
jobs :
9
+ version-check :
10
+ # We need this job to run only on push with tag.
11
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
12
+ runs-on : ubuntu-20.04
13
+ steps :
14
+ - name : Check module version
15
+ uses : tarantool/actions/check-module-version@master
16
+ with :
17
+ module-name : ' migrator'
18
+
9
19
publish-scm-1 :
10
20
if : github.ref == 'refs/heads/master'
11
21
runs-on : ubuntu-20.04
18
28
19
29
publish-tag :
20
30
if : startsWith(github.ref, 'refs/tags/')
31
+ needs : version-check
21
32
runs-on : ubuntu-20.04
22
33
steps :
23
34
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
7
## [ Unreleased]
8
+ ### Added:
9
+ - Versioning support
8
10
9
11
## [ 0.4.2]
10
12
### Fixed:
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ build = {
17
17
install = {
18
18
lua = {
19
19
[' migrator' ] = ' migrator/init.lua' ,
20
+ [' migrator.version' ] = ' migrator/version.lua' ,
20
21
[' migrator.utils' ] = ' migrator/utils.lua' ,
21
22
[' migrator.directory-loader' ] = ' migrator/directory-loader.lua' ,
22
23
[' migrator.config-loader' ] = ' migrator/config-loader.lua' ,
Original file line number Diff line number Diff line change @@ -176,5 +176,7 @@ return {
176
176
set_loader = set_loader ,
177
177
set_use_cartridge_ddl = set_use_cartridge_ddl ,
178
178
179
- get_schema = get_schema
179
+ get_schema = get_schema ,
180
+
181
+ _VERSION = require (' migrator.version' ),
180
182
}
Original file line number Diff line number Diff line change
1
+ -- Сontains the module version.
2
+ -- Requires manual update in case of release commit.
3
+
4
+ return ' 0.4.2'
You can’t perform that action at this time.
0 commit comments