Skip to content

Commit

Permalink
Merge pull request #16 from ahasunos/improve-version-bumper-to-skip-bump
Browse files Browse the repository at this point in the history
fix: debug version bumper
  • Loading branch information
ahasunos authored Sep 5, 2024
2 parents 93696c7 + ef3ac4b commit e69d0c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/scripts/version_bump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def update_version_file(new_version)

def determine_bump_type
labels = ENV['PR_LABELS'].to_s
puts "PR_LABELS: #{labels}" # Debugging line to check labels
return 'skip' if labels.include?('skip-version-bump') || labels.include?('ci')
return 'major' if labels.include?('bump-major')
return 'minor' if labels.include?('bump-minor')
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:

- name: Get Pull Request Labels
id: get_labels
run: echo "PR_LABELS=$(echo '${{ github.event.pull_request.labels }}')" >> $GITHUB_ENV
run: |
echo "PR_LABELS=$(echo '${{ github.event.pull_request.labels }}')" >> $GITHUB_ENV
echo "PR_LABELS=${{ env.PR_LABELS }}" # Debugging line to check labels
- name: Bump version
run: ruby .github/scripts/version_bump.rb
Expand Down

0 comments on commit e69d0c7

Please sign in to comment.