middleware_apm_dp 0.3.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/feature.yaml +44 -0
- data/.github/workflows/master.yaml +6 -6
- data/lib/middleware/ruby_gem/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8431f099dfb990d8108df4b33cfdceadfe40e817275fab18520e7eff43bc1944
|
4
|
+
data.tar.gz: b7e4b0d7520f07704599df3a61104bc344326fef5bdbdc83ecbbdb7e23160934
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
-
|
7
|
+
- update-master-workflow
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
release_version:
|
@@ -32,10 +32,10 @@ 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
|
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"
|
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
41
|
echo "::set-output name=version::$NEW_VERSION"
|
@@ -45,7 +45,6 @@ jobs:
|
|
45
45
|
fi
|
46
46
|
|
47
47
|
- name: Publish Gem Package
|
48
|
-
if: steps.version_check.outputs.version_changed == 'true'
|
49
48
|
env:
|
50
49
|
GEM_HOST_API_KEY: ${{ secrets.DP_RUBY_GEM_API_KEY }}
|
51
50
|
run: |
|
@@ -57,7 +56,6 @@ jobs:
|
|
57
56
|
gem push *.gem
|
58
57
|
|
59
58
|
- name: Create Release
|
60
|
-
if: steps.version_check.outputs.version_changed == 'true'
|
61
59
|
id: create_release
|
62
60
|
uses: actions/create-release@v1
|
63
61
|
env:
|
@@ -65,5 +63,7 @@ jobs:
|
|
65
63
|
with:
|
66
64
|
tag_name: v${{ steps.version_check.outputs.version }}
|
67
65
|
release_name: Release ${{ steps.version_check.outputs.version }}
|
66
|
+
body: |
|
67
|
+
Release ${{ steps.version_check.outputs.version }}
|
68
68
|
draft: false
|
69
69
|
prerelease: false
|
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.
|
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"
|