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 1111 ROCK_NAME : " crud"
1212
1313jobs :
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+
1424 push-scm-rockspec :
1525 runs-on : ubuntu-20.04
1626 if : github.ref == 'refs/heads/master'
2535 push-tagged-rockspec :
2636 runs-on : ubuntu-20.04
2737 if : startsWith(github.ref, 'refs/tags')
38+ needs : version-check
2839 steps :
2940 - uses : actions/checkout@master
3041
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.
77
88## [ Unreleased]
99
10+ ### Added
11+ * Add versioning support (PR #342 ).
12+
1013### Fixed
1114* Pre-hotreload ` cartridge ` support (older than 2.4.0) (PR #341 ).
1215* Tarantool version-dependent features for 3.x (PR #344 ).
Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ local stats = require('crud.stats')
2323
2424local crud = {}
2525
26+ -- @refer crud.version
27+ -- @tfield string _VERSION
28+ -- Module version.
29+ crud ._VERSION = require (' crud.version' )
30+
2631--- CRUD operations.
2732-- @section crud
2833
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