File tree 4 files changed +18
-0
lines changed
4 files changed +18
-0
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 : ' ddl'
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 @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8
8
9
9
### Added
10
10
11
+ - Added versioning support (#105 ).
12
+
11
13
### Changed
12
14
13
15
### Fixed
Original file line number Diff line number Diff line change @@ -188,4 +188,5 @@ return {
188
188
set_schema = set_schema ,
189
189
get_schema = get_schema ,
190
190
bucket_id = bucket_id ,
191
+ _VERSION = require (' ddl.version' ),
191
192
}
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 ' 1.6.2'
You can’t perform that action at this time.
0 commit comments