Skip to content

Commit 5aef30c

Browse files
author
Jon Elverkilde
committed
Fix release action
1 parent 09665df commit 5aef30c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
sudo cp semver-tool-3.2.0/src/semver /usr/local/bin
4040
- name: Bump version
4141
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}')
4343
export NEW_VERSION=$(semver bump ${{ env.RELEASE }} $CURRENT)
4444
echo "VERSION=$NEW_VERSION" >> $GITHUB_ENV
4545
- name: Checkout code
@@ -63,12 +63,9 @@ jobs:
6363
- name: Prepare version.rb
6464
run: |
6565
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
6966
- name: Commit changes
7067
run: |
71-
git add CHANGELOG.md lib/pusher/push_notifications/version.rb Gemfile.lock
68+
git add CHANGELOG.md lib/pusher/version.rb
7269
git commit -m "Bump to version ${{ env.VERSION }}"
7370
- name: Push
7471
run: git push

0 commit comments

Comments
 (0)