middleware_apm_dp 0.2.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd4dfa3b1c8c5a2dd1aa3e87061c51f33ae664f52c95f78fc628099c33fb30fa
4
- data.tar.gz: f326f3ee2cde4073bc3cceb0575ccc215bb09da3e0ef5632299accbe78838387
3
+ metadata.gz: 8431f099dfb990d8108df4b33cfdceadfe40e817275fab18520e7eff43bc1944
4
+ data.tar.gz: b7e4b0d7520f07704599df3a61104bc344326fef5bdbdc83ecbbdb7e23160934
5
5
  SHA512:
6
- metadata.gz: d5e52fa080b862a83d7183fa287d7346b3be6b2a224dfd1642cf673784754fd71ef3451f477ac652ec91d50657110e24b37aba096e75ba2ed5b124032c94d51f
7
- data.tar.gz: 325d3d59ecd135f7a17528dd0edfdb5c8cf35ffd41c20be9b041dab267336225316fa88cadae38749282c5f950c636edff346a07167281c39768f9c6398d7407
6
+ metadata.gz: 52954d2b39f11fcd5eceffa13ae429e66d80770d3d99765bbc74ab1e0d8f6e43ca2a05653c5826641a8177fdaa72a2c33c0e421b094eff35d09c9cfffef0e455
7
+ data.tar.gz: e41253f69bfe900c1db843a698f4efa681959c0b25496a8ac9089f5bcbcf2f7c8ee7338c55a51b661e51ee57f09b0d067ce2ba854a1393b4f6705d73e2820600
@@ -0,0 +1,44 @@
1
+ name: Build and Checks of Gem Package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '*'
7
+ - '!master'
8
+
9
+ jobs:
10
+ build_and_checks:
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout Repository
15
+ uses: actions/checkout@v2
16
+
17
+ - name: Set Up Ruby
18
+ uses: actions/setup-ruby@v1
19
+ with:
20
+ ruby-version: 3.0
21
+
22
+ - name: Install Dependencies
23
+ run: |
24
+ gem install bundler
25
+ bundle install
26
+
27
+ - name: Build Gem Package
28
+ run: |
29
+ gem build middleware_rubygem.gemspec
30
+
31
+ - name: Check for Version Change
32
+ id: version_check
33
+ run: |
34
+ # Get the latest version from the main branch
35
+ LATEST_VERSION=$(git fetch origin master && git show origin/master:lib/middleware/ruby_gem/version.rb | grep 'VERSION =' | awk '{print $3}' | tr -d '"')
36
+
37
+ # Get the current version from the current commit
38
+ NEW_VERSION=$(git show HEAD:lib/middleware/ruby_gem/version.rb | grep 'VERSION =' | awk '{print $3}' | tr -d '"')
39
+
40
+ if [ "$LATEST_VERSION" != "$NEW_VERSION" ]; then
41
+ echo "Version changed from $LATEST_VERSION to $NEW_VERSION"
42
+ else
43
+ echo "::warning file=version.rb::Version remains unchanged"
44
+ fi
@@ -4,7 +4,7 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - master
7
- - github-workflow
7
+ - update-master-workflow
8
8
 
9
9
  jobs:
10
10
  release_version:
@@ -32,19 +32,19 @@ jobs:
32
32
  id: version_check
33
33
  run: |
34
34
  # Extract the old and new versions from the commit
35
- OLD_VERSION=$(git show HEAD^:lib/middleware/ruby_gem/version.rb | grep 'VERSION =' | awk '{print $3}' | tr -d '"')
35
+ OLD_VERSION=$(git show HEAD:lib/middleware/ruby_gem/version.rb | grep 'VERSION =' | awk '{print $3}' | tr -d '"')
36
36
  NEW_VERSION=$(git show HEAD:lib/middleware/ruby_gem/version.rb | grep 'VERSION =' | awk '{print $3}' | tr -d '"')
37
-
38
- if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
37
+
38
+ if [ "$OLD_VERSION" == "$NEW_VERSION" ]; then
39
39
  echo "Version changed from $OLD_VERSION to $NEW_VERSION"
40
40
  echo "::set-output name=version_changed::true"
41
+ echo "::set-output name=version::$NEW_VERSION"
41
42
  else
42
43
  echo "Version remains unchanged"
43
44
  echo "::set-output name=version_changed::false"
44
45
  fi
45
46
 
46
47
  - name: Publish Gem Package
47
- if: steps.version_check.outputs.version_changed == 'true'
48
48
  env:
49
49
  GEM_HOST_API_KEY: ${{ secrets.DP_RUBY_GEM_API_KEY }}
50
50
  run: |
@@ -56,13 +56,14 @@ jobs:
56
56
  gem push *.gem
57
57
 
58
58
  - name: Create Release
59
- if: steps.version_check.outputs.version_changed == 'true'
60
59
  id: create_release
61
60
  uses: actions/create-release@v1
62
61
  env:
63
62
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64
63
  with:
65
- tag_name: v${{ steps.version_check.NEW_VERSION }}
66
- release_name: Release ${{ steps.version_check.NEW_VERSION }}
64
+ tag_name: v${{ steps.version_check.outputs.version }}
65
+ release_name: Release ${{ steps.version_check.outputs.version }}
66
+ body: |
67
+ Release ${{ steps.version_check.outputs.version }}
67
68
  draft: false
68
69
  prerelease: false
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Middleware
4
4
  module RubyGem
5
- VERSION = "0.2.0"
5
+ VERSION = "1.0.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleware_apm_dp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - middleware-dev
@@ -23,6 +23,7 @@ executables: []
23
23
  extensions: []
24
24
  extra_rdoc_files: []
25
25
  files:
26
+ - ".github/workflows/feature.yaml"
26
27
  - ".github/workflows/master.yaml"
27
28
  - ".gitignore"
28
29
  - ".rubocop.yml"