Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit facc4d9

Browse files
committed
github: update release draft workflow
Switch to $GITHUB_ENV since set-env has been deprecated Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 927f228 commit facc4d9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/draft_new_release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Extract version from milestone
1616
run: |
1717
VERSION="${{ github.event.milestone.title }}"
18-
echo "::set-env name=RELEASE_VERSION::$VERSION"
18+
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
1919
2020
- name: Create release branch
2121
run: git checkout -b release-${{ env.RELEASE_VERSION }}
@@ -25,15 +25,16 @@ jobs:
2525
with:
2626
version: v${{ env.RELEASE_VERSION }}
2727

28-
- name: Initialize git config
28+
- name: Initialize git config and commit changes
2929
run: |
3030
git config user.name "GitHub Actions"
3131
git config user.email [email protected]
32+
git commit "Prepare release $RELEASE_VERSION"
3233
3334
- name: Create Pull Request
34-
uses: peter-evans/create-pull-request@v3
35+
uses: repo-sync/pull-request@v2
3536
with:
36-
commit-message: "Prepare release ${{ env.RELEASE_VERSION }}"
37-
branch: release-${{ env.RELEASE_VERSION }}
38-
base: release
39-
title: Release ${{ env.RELEASE_VERSION }}
37+
source_branch: release-${{ env.RELEASE_VERSION }}
38+
destination_branch: release
39+
pr_title: Release ${{ env.RELEASE_VERSION }}
40+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)