diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-10-10 12:29:13 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-10-10 12:29:13 +0530 |
commit | facc4d91635e7cd4a502bece0e20ea92fa23e3f6 (patch) | |
tree | 724b1b53cb7a0c45873fff30aade52f0013fd79e /.github | |
parent | 927f228db5045b49795dbcbfbce3a057dcf17ac9 (diff) |
github: update release draft workflow
Switch to $GITHUB_ENV since set-env has been deprecated
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/draft_new_release.yml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/.github/workflows/draft_new_release.yml b/.github/workflows/draft_new_release.yml index 91b047fb..836efc3f 100644 --- a/.github/workflows/draft_new_release.yml +++ b/.github/workflows/draft_new_release.yml @@ -15,7 +15,7 @@ jobs: - name: Extract version from milestone run: | VERSION="${{ github.event.milestone.title }}" - echo "::set-env name=RELEASE_VERSION::$VERSION" + echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV - name: Create release branch run: git checkout -b release-${{ env.RELEASE_VERSION }} @@ -25,15 +25,16 @@ jobs: with: version: v${{ env.RELEASE_VERSION }} - - name: Initialize git config + - name: Initialize git config and commit changes run: | git config user.name "GitHub Actions" git config user.email noreply@github.com + git commit "Prepare release $RELEASE_VERSION" - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 + uses: repo-sync/pull-request@v2 with: - commit-message: "Prepare release ${{ env.RELEASE_VERSION }}" - branch: release-${{ env.RELEASE_VERSION }} - base: release - title: Release ${{ env.RELEASE_VERSION }} + source_branch: release-${{ env.RELEASE_VERSION }} + destination_branch: release + pr_title: Release ${{ env.RELEASE_VERSION }} + github_token: ${{ secrets.GITHUB_TOKEN }} |