Skip to content

Commit bcd7c70

Browse files
authored
💚 Fix release workflow (#579)
* 💚 Fix release workflow * simpler * fix
1 parent 124022d commit bcd7c70

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Generate GitHub Release
33
permissions:
44
contents: write
55
packages: write
6+
pull-requests: write
67

78
on:
89
push:
@@ -50,11 +51,11 @@ jobs:
5051
CLEAN_VERSION=$(echo "$VERSION" | sed 's/^v//')
5152
sed -i "s/^version = \".*\"$/version = \"$CLEAN_VERSION\"/" Cargo.toml
5253
cargo update hyle
53-
git config --global user.name "${GITHUB_ACTOR}"
54-
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
55-
git add .
56-
git commit -m "🔖 Bump version to ${VERSION}"
57-
- name: Push changes
58-
uses: ad-m/github-push-action@master
54+
- name: Create Pull Request
55+
id: cpr
56+
uses: peter-evans/create-pull-request@v7
5957
with:
60-
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
commit-message: "🔖 Bump version to ${{ github.ref_name }}"
59+
title: "🔖 Bump version to ${{ github.ref_name }}"
60+
- name: Enable Pull Request Automerge
61+
run: gh pr merge --squash --auto

0 commit comments

Comments
 (0)