bens-hello-world 0.3.2 → 0.3.6

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: 27650248a27aae4d7cbd6da656e1ebeddaf6b215c7400e984f2f587e2792c671
4
- data.tar.gz: e5e2923361358bcdc9d067ec1fa1b0ae2ee646175ff1e3d254c9331e78d8a3f2
3
+ metadata.gz: 1140a069caec139a5831995301f6ac5e22b3db7e937267264d839ba0055af14c
4
+ data.tar.gz: 56f454a2d4cf36627cd48a3e180e7f75a9e2e0f7ab8d9aa6907eca9a05ff88a2
5
5
  SHA512:
6
- metadata.gz: 8407e67d4c32885008085c707b9d0650c592ebe03b398b8a78fc1a415ded5cd52ec640997b16ded72a591fa216f259b0a1e874028d01aa46c489c38c20114704
7
- data.tar.gz: 604fde15cd3e8b9ad4ccac2dd493db196309e1c4b2dd28e29adf7d05c1a8d6606695170c3c51629bcd9dc2807e8d28f2b3b14ef9f427d9645294436a178b7015
6
+ metadata.gz: f07507f52fdadb163f10f21e05005f8149a3fdda720141707fd1db5352a903aa19b36af5e9e1ed2545579597b6b56fd311eca5dd9b3c2bde3daedd111573c188
7
+ data.tar.gz: eab034787befff23ec4aa7b7843c6ed15d91bf55df7d5a45d23ba3b41f478bc73cd3f537be821d1a28527c7bf41877ddd5e6235af211ecb090e606979bf05572
@@ -7,6 +7,8 @@ on:
7
7
  jobs:
8
8
  manual-release:
9
9
  runs-on: ubuntu-latest
10
+ env:
11
+ VERSION: $(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))
10
12
  steps:
11
13
 
12
14
  - uses: actions/checkout@v2
@@ -17,6 +19,7 @@ jobs:
17
19
  ruby-version: 3.0.0
18
20
  - run: bundle install
19
21
 
22
+
20
23
  - name: publish gem
21
24
  run: |
22
25
  mkdir -p $HOME/.gem
@@ -30,15 +33,18 @@ jobs:
30
33
  # if yours isn't named RUBYGEMS_AUTH_TOKEN
31
34
  GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
32
35
 
33
-
34
36
  # now, after the gem has been successfully published
35
37
  # we would need to automatically tag based on the current commit
36
38
  # ideally we would read the version in the gem file and commit that.
37
- - name: Get version number
38
- id: version
39
- run: |
40
- echo "::set-output version = $(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" lib/pagy.rb)"
41
39
 
40
+ ## We wanna use this one for pagy
41
+ # echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/pagy.rb"))"
42
+
43
+ # - name: Get version number
44
+ # id: version
45
+ # run: |
46
+ # echo "::set-output name=version::$(sed -nr "s/.*VERSION\s*=\s*('|\")([^'\"]+).*$/\2/p" $(echo "$GITHUB_WORKSPACE/lib/bens/hello/world/version.rb"))"
47
+
42
48
  - name: Create tag
43
49
  uses: actions/github-script@v3
44
50
  with:
@@ -47,7 +53,7 @@ jobs:
47
53
  github.git.createRef({
48
54
  owner: context.repo.owner,
49
55
  repo: context.repo.repo,
50
- ref: `refs/tags/${{steps.version.outputs.version}}`,
56
+ ref: "refs/tags/".concat(${{env.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.2)
4
+ bens-hello-world (0.3.6)
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.2"
4
+ VERSION = "0.3.6"
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.2
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BK