From facc4d91635e7cd4a502bece0e20ea92fa23e3f6 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 10 Oct 2020 12:29:13 +0530 Subject: github: update release draft workflow Switch to $GITHUB_ENV since set-env has been deprecated Signed-off-by: Harsh Shandilya --- .github/workflows/draft_new_release.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.github/workflows') 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 }} -- cgit v1.2.3