Skip to content

Commit 373c31c

Browse files
GRISHNOVDifferentialOrange
authored andcommitted
api: add hardcoded versioning support
Added the _VERSION variable to the exported table. Is part of the task [1]. 1. github.com/tarantool/roadmap-internal/issues/204
1 parent d5257d9 commit 373c31c

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.github/workflows/publish.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ on:
66
tags: ['*']
77

88
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+
919
publish-scm-1:
1020
if: github.ref == 'refs/heads/master'
1121
runs-on: ubuntu-20.04
@@ -18,6 +28,7 @@ jobs:
1828

1929
publish-tag:
2030
if: startsWith(github.ref, 'refs/tags/')
31+
needs: version-check
2132
runs-on: ubuntu-20.04
2233
steps:
2334
- uses: actions/checkout@v2

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
### Added
1010

11+
- Added versioning support (#105).
12+
1113
### Changed
1214

1315
### Fixed

ddl.lua

+1
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,5 @@ return {
188188
set_schema = set_schema,
189189
get_schema = get_schema,
190190
bucket_id = bucket_id,
191+
_VERSION = require('ddl.version'),
191192
}

ddl/version.lua

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Сontains the module version.
2+
-- Requires manual update in case of release commit.
3+
4+
return '1.6.2'

0 commit comments

Comments
 (0)