github: update release draft workflow
Switch to $GITHUB_ENV since set-env has been deprecated Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
927f228db5
commit
facc4d9163
1 changed files with 8 additions and 7 deletions
15
.github/workflows/draft_new_release.yml
vendored
15
.github/workflows/draft_new_release.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
||||||
- name: Extract version from milestone
|
- name: Extract version from milestone
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ github.event.milestone.title }}"
|
VERSION="${{ github.event.milestone.title }}"
|
||||||
echo "::set-env name=RELEASE_VERSION::$VERSION"
|
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create release branch
|
- name: Create release branch
|
||||||
run: git checkout -b release-${{ env.RELEASE_VERSION }}
|
run: git checkout -b release-${{ env.RELEASE_VERSION }}
|
||||||
|
@ -25,15 +25,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: v${{ env.RELEASE_VERSION }}
|
version: v${{ env.RELEASE_VERSION }}
|
||||||
|
|
||||||
- name: Initialize git config
|
- name: Initialize git config and commit changes
|
||||||
run: |
|
run: |
|
||||||
git config user.name "GitHub Actions"
|
git config user.name "GitHub Actions"
|
||||||
git config user.email noreply@github.com
|
git config user.email noreply@github.com
|
||||||
|
git commit "Prepare release $RELEASE_VERSION"
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: repo-sync/pull-request@v2
|
||||||
with:
|
with:
|
||||||
commit-message: "Prepare release ${{ env.RELEASE_VERSION }}"
|
source_branch: release-${{ env.RELEASE_VERSION }}
|
||||||
branch: release-${{ env.RELEASE_VERSION }}
|
destination_branch: release
|
||||||
base: release
|
pr_title: Release ${{ env.RELEASE_VERSION }}
|
||||||
title: Release ${{ env.RELEASE_VERSION }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue