Skip to content

fix: update regex to capture both single/double quotes around version #2

fix: update regex to capture both single/double quotes around version

fix: update regex to capture both single/double quotes around version #2

Workflow file for this run

name: Version Bump
on:
pull_request:
types: [closed]
branches:
- main
jobs:
version-bump:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
- name: Fetch all history for version bumping
run: git fetch --prune --unshallow
- name: Get Pull Request Labels
id: get_labels
run: echo "PR_LABELS=$(echo '${{ github.event.pull_request.labels }}')" >> $GITHUB_ENV
- name: Bump version
run: ruby .github/scripts/version_bump.rb
- name: Commit and push changes
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git add lib/nse_data/version.rb
git commit -m "Bump version by github-actions"
git push