Skip to content

Commit

Permalink
fix: Correct dynamic version rag in release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyabareeva authored Nov 21, 2024
1 parent 837be1e commit 2454afa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ jobs:
- name: Push changes to a new branch and create a PR
run: |
# Create a new branch from main
git checkout -b version-bump-${{ steps.release.outputs.version }}
git checkout -b version-bump-${{ steps.release.outputs.tag }}
# Add the changes made by semantic-release (version update and changelog)
git add pyproject.toml CHANGELOG.md
# Commit the changes (version bump and changelog update)
git commit -m "chore: bump version to ${{ steps.release.outputs.version }} and update changelog"
git commit -m "chore: bump version to ${{ steps.release.outputs.tag }} and update changelog"
# Push changes to the new branch
git push origin version-bump-${{ steps.release.outputs.version }}
git push origin version-bump-${{ steps.release.outputs.tag }}
# Create a pull request using GitHub CLI (gh)
gh pr create --base main --head version-bump-${{ steps.release.outputs.version }} --title "chore: Version bump to ${{ steps.release.outputs.version }}" --body "Automated version bump"
gh pr create --base main --head version-bump-${{ steps.release.outputs.tag }} --title "chore: Version bump to ${{ steps.release.outputs.tag }}" --body "Automated version bump"
env:
GITHUB_TOKEN: ${{ secrets.QUANDA_ADMIN }}
Expand Down

0 comments on commit 2454afa

Please sign in to comment.