-
Notifications
You must be signed in to change notification settings - Fork 786
50 lines (41 loc) · 1.32 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Keep Release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
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
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
run: |
# Push the release branch to the remote repository, forcing update
git push --force origin release
- 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