File tree 1 file changed +2
-5
lines changed 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 39
39
sudo cp semver-tool-3.2.0/src/semver /usr/local/bin
40
40
- name : Bump version
41
41
run : |
42
- export CURRENT=$(gem info pusher-push-notifications --remote --exact | grep -o "pusher-push-notifications ([0-9]*\.[0-9]*\.[0-9]*)" | awk -F '[()]' '{print $2}')
42
+ export CURRENT=$(gem info pusher --remote --exact | grep -o "pusher ([0-9]*\.[0-9]*\.[0-9]*)" | awk -F '[()]' '{print $2}')
43
43
export NEW_VERSION=$(semver bump ${{ env.RELEASE }} $CURRENT)
44
44
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
45
45
- name : Checkout code
63
63
- name : Prepare version.rb
64
64
run : |
65
65
sed -i "s|VERSION = '[^']*'|VERSION = '${{ env.VERSION }}'|" lib/pusher/version.rb
66
- - name : Prepare Gemfile.lock
67
- run : |
68
- sed -i "s|pusher-push-notifications ([^)]*)|pusher-push-notifications (${{ env.VERSION }})|" Gemfile.lock
69
66
- name : Commit changes
70
67
run : |
71
- git add CHANGELOG.md lib/pusher/push_notifications/ version.rb Gemfile.lock
68
+ git add CHANGELOG.md lib/pusher/version.rb
72
69
git commit -m "Bump to version ${{ env.VERSION }}"
73
70
- name : Push
74
71
run : git push
You can’t perform that action at this time.
0 commit comments