bens-hello-world 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e1cd66d40b4c099d8ecd0d0847faca12b434163370f0ed767e40c0dec3ccf19
4
- data.tar.gz: 0a3b481f66a5db05b273212874f0024558733a36abd42e3e3cf153e672f69d58
3
+ metadata.gz: dd17bd0fd5bc207248da4ba24ea4ec5fbb8b0279db37c514c99fd713336f4fd1
4
+ data.tar.gz: 9ef27e30dca496b969cefc42a814ece1a055ffd7db5bc520ab4febd250cd38fb
5
5
  SHA512:
6
- metadata.gz: a263e5ef3cccd84deca2ce22b1f770a256f10ae43156dfa5412cca181abdc199a6e06b318b727dcc9a0e5bcc0323c6f658bd57becc9d9ffc400ab70266113e21
7
- data.tar.gz: 8fbac6132b49b7f644b8bf6ceb55d1c88bf69d596e749a040566d1598a123858eff65fe93bc028065da345ff38a793ee11e4d91b5c513abf96aeb40a48dee286
6
+ metadata.gz: 8fbae97d908860a3fefbd60ecf43ab9a835212db50a5488a95387df844676907c0e0f37c1606b29f12800d7c6a7a8f25071a069c5a91d90524ccf2263a495836
7
+ data.tar.gz: 16bf68b6e789b7c0fff71f62dcfc65bb9f041d1386a968d6f5f72b54c268b0aad674c607b71f49761374320cd20ecb3e55a32703b31c0aba7992080906c024cb
@@ -17,6 +17,7 @@ jobs:
17
17
  ruby-version: 3.0.0
18
18
  - run: bundle install
19
19
 
20
+
20
21
  - name: publish gem
21
22
  run: |
22
23
  mkdir -p $HOME/.gem
@@ -33,11 +34,16 @@ jobs:
33
34
 
34
35
  # now, after the gem has been successfully published
35
36
  # we would need to automatically tag based on the current commit
36
- # ideally we would read the version in the gem file and commit that.
37
+ # ideally we would read the version in the gem file and commit that.
38
+
39
+ ## We wanna use this one for pagy
40
+ # echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/pagy.rb"))"
37
41
  - name: Get version number
38
42
  id: version
39
- run: |
40
- echo "::set-output version = $(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(gem which pagy))"
43
+ run: |
44
+ echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
45
+
46
+
41
47
 
42
48
  - name: Create tag
43
49
  uses: actions/github-script@v3
@@ -47,7 +53,7 @@ jobs:
47
53
  github.git.createRef({
48
54
  owner: context.repo.owner,
49
55
  repo: context.repo.repo,
50
- ref: `${{steps.version.outputs.version}}`,
56
+ ref: `refs/tags/${{steps.version.outputs.version}}`,
51
57
  sha: context.sha
52
58
  })
53
59
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bens-hello-world (0.3.3)
4
+ bens-hello-world (0.3.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  module Bens
2
2
  module Hello
3
3
  module World
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bens-hello-world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - BK