fix: update regex to capture both single/double quotes around version #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |