From 5a633083f922bd8323c1a5e38bcb30dfe1ea6fc1 Mon Sep 17 00:00:00 2001 From: Tal Borenstein Date: Tue, 20 Aug 2024 14:05:28 +0300 Subject: [PATCH] fix: another try --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ec0074aea..868c57a9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,7 @@ jobs: commit: true - name: Open PR for release branch + id: pr-step uses: peter-evans/create-pull-request@v6.1.0 with: committer: Keep Release Bot @@ -39,3 +40,19 @@ jobs: body: "This PR contains the latest release changes." draft: false base: main + + - uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + pull-request-number: ${{ steps.pr-step.outputs.pull-request-number }} + + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ steps.release-step.outputs.version }} + run: | + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \ + --target="release/${{ steps.release-step.outputs.version }}" \ + --generate-notes