Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Aug 12, 2024
1 parent ede07e9 commit df19528
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,25 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Create or update release branch
run: |
git config user.name "Keep Release Bot"
git config user.email "[email protected]"
# Fetch all branches and tags
git fetch --all
# Create or reset the release branch to match the current HEAD
git checkout -B release
- name: Release Keep
id: release-step
uses: python-semantic-release/[email protected]
with:
git_committer_name: Keep Release Bot
git_committer_email: [email protected]
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Push branch
- name: Create or update release branch
run: |
# Push the release branch to the remote repository, forcing update
git push --force origin release
git config user.name "Keep Release Bot"
git config user.email "[email protected]"
# Create or reset the release branch to match the current HEAD
git checkout -B release/${{ steps.release-step.outputs.version }}
- name: Open PR for release branch
uses: peter-evans/create-pull-request@v5
with:
branch: release
title: "Release - $(date +'%Y-%m-%d')"
body: "This PR contains the latest release changes."
draft: false

0 comments on commit df19528

Please sign in to comment.