We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c12924a commit f5c97a8Copy full SHA for f5c97a8
3 files changed
.github/workflows/rspec.yml
@@ -36,6 +36,8 @@ jobs:
36
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
37
steps:
38
- uses: actions/checkout@v2
39
+ with:
40
+ fetch-depth: 0
41
- uses: ruby/setup-ruby@v1
42
with:
43
ruby-version: ${{ matrix.ruby }}
VERSION
netbox-client-ruby.gemspec
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
4
Gem::Specification.new do |spec|
5
spec.name = 'netbox-client-ruby'
6
- spec.version = File.read(File.expand_path('VERSION', __dir__)).strip
+ spec.version = `git describe --tags --match="v[0-9]*" --abbrev=0`.strip.delete_prefix("v")
7
8
spec.summary = 'A read/write client for Netbox v2.'
9
spec.homepage = 'https://github.com/ninech/netbox-client-ruby'
0 commit comments