File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 11
11
ROCK_NAME : " crud"
12
12
13
13
jobs :
14
+ version-check :
15
+ # We need this job to run only on push with tag.
16
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
17
+ runs-on : ubuntu-20.04
18
+ steps :
19
+ - name : Check module version
20
+ uses : tarantool/actions/check-module-version@master
21
+ with :
22
+ module-name : ' crud'
23
+
14
24
push-scm-rockspec :
15
25
runs-on : ubuntu-20.04
16
26
if : github.ref == 'refs/heads/master'
25
35
push-tagged-rockspec :
26
36
runs-on : ubuntu-20.04
27
37
if : startsWith(github.ref, 'refs/tags')
38
+ needs : version-check
28
39
steps :
29
40
- uses : actions/checkout@master
30
41
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Added
11
+ * Add versioning support (PR #342 ).
12
+
10
13
### Fixed
11
14
* Pre-hotreload ` cartridge ` support (older than 2.4.0) (PR #341 ).
12
15
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ local stats = require('crud.stats')
23
23
24
24
local crud = {}
25
25
26
+ -- @refer crud.version
27
+ -- @tfield string _VERSION
28
+ -- Module version.
29
+ crud ._VERSION = require (' crud.version' )
30
+
26
31
--- CRUD operations.
27
32
-- @section crud
28
33
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.0.0'
You can’t perform that action at this time.
0 commit comments