Skip to content

Commit

Permalink
Update bump_version.yml
Browse files Browse the repository at this point in the history
sophiamaedler authored Jan 9, 2025
1 parent 3ad3d39 commit 738a839
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
@@ -29,27 +29,13 @@ jobs:
args: ${{ inputs.bump-type }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create a new branch
if: steps.bump.outputs.bumped == 'true'
run: |
NEW_BRANCH="bump-version-${{ steps.bump.outputs.current-version }}"
git checkout -b "$NEW_BRANCH"
git add .
git commit -m "Bump version to ${{ steps.bump.outputs.current-version }}"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} "$NEW_BRANCH"
git checkout main
git pull
- name: Checkout the code
uses: actions/checkout@v4

- name: Create a pull request
if: steps.bump.outputs.bumped == 'true'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: main
branch: "origin/bump-version-${{ steps.bump.outputs.current-version }}"
branch: "bump-version-${{ steps.bump.outputs.current-version }}"
title: "[VERSION] Bump version to ${{ steps.bump.outputs.current-version }}"
body: "This PR bumps the project version to ${{ steps.bump.outputs.current-version }}."
labels:

0 comments on commit 738a839

Please sign in to comment.