From fb8351bbc580d193c36b055fa5039a2dcbb17713 Mon Sep 17 00:00:00 2001 From: Logan Adams <114770087+loadams@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:59:44 -0700 Subject: [PATCH] Update autoPR creation in release script (#245) --- .github/workflows/release.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd4c9238..36d3ea46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,10 +31,16 @@ jobs: - name: Bump version run: | python release/bump_patch_version.py --current_version ${{ env.RELEASE_VERSION }} - - name: Commit version.txt - run: | - git config --global user.name 'ds-release-bot' - git config --global user.email 'ds-release-bot@users.noreply.github.com' - git add version.txt - git commit -m "Release v${{ env.RELEASE_VERSION }}" - git push + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + add-paths: | + version.txt + body: | + **Auto-generated PR to update version.txt after a DeepSpeed release** + Released version - ${{ env.RELEASE_VERSION }} + Author - @${{ github.actor }} + branch: AutoPR/${{ env.RELEASE_VERSION }} + assignees: ${{ github.actor }} + title: "Update version.txt after ${{ env.RELEASE_VERSION }} release" + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>