Skip to content

Commit

Permalink
ci(action): patch release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
esteinig committed Feb 10, 2024
1 parent 9ee56f2 commit 21b945a
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,7 @@ jobs:
VERSION=$(cog bump --dry-run --auto)
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Create a new branch for the pull request
run: |
NEW_BRANCH="bot/release-${{ steps.release.outputs.version }}"
git checkout -b $NEW_BRANCH
- name: Auto bump version and commit
run: |
cog bump --auto
git push origin "bot/release-${{ steps.release.outputs.version }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'Merge release ${{ steps.release.outputs.version }}'
title: '[RELEASE] Merge release ${{ steps.release.outputs.version }} into main'
body: 'This is an automated pull request to merge changes from the release/${{ steps.release.outputs.version }} into main'
branch: "bot/release-${{ steps.release.outputs.version }}"
base: main
git push origin "${{ steps.release.outputs.version }}"

0 comments on commit 21b945a

Please sign in to comment.