Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,6 @@ jobs:
ruby-version: 3.3
bundler-cache: true

- name: Update version from tag and commit
if: startsWith(github.ref, 'refs/tags/')
run: |
# Extract version from tag (remove 'v' prefix if present)
VERSION="${{ github.ref_name }}"
# Remove 'v' prefix if present
VERSION="${VERSION#v}"
echo "Updating version to: $VERSION"
# Checkout master branch
git checkout master
# Update version.rb file
sed -i "s/VERSION = \".*\"/VERSION = \"$VERSION\"/" lib/pgslice/version.rb
cat lib/pgslice/version.rb
# Commit and push the change
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add lib/pgslice/version.rb
git commit -m "Update version to ${{ github.ref_name }}" || exit 0
git push origin master

- name: Build gem
id: build
run: |
Expand Down