From c426e24fda22554d2f35feb5cc60704ea9438a3b Mon Sep 17 00:00:00 2001 From: Mehul Mathur Date: Sat, 28 Dec 2024 11:02:33 +0530 Subject: [PATCH] ci: create PR on release updation (#581) * ci: create PR on release updation * test: releases ci * test: ci * test: ci * revert: test changes --- .github/workflows/update-releases.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-releases.yml b/.github/workflows/update-releases.yml index cb075a14b..dbf7f8c55 100644 --- a/.github/workflows/update-releases.yml +++ b/.github/workflows/update-releases.yml @@ -6,6 +6,7 @@ on: permissions: contents: write + pull-requests: write jobs: update-releases: @@ -31,9 +32,16 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: node release-notes-generator.js - - name: Commit and push changes (on develop) - uses: stefanzweifel/git-auto-commit-action@v5 + - name: Create pull request + uses: peter-evans/create-pull-request@v7 with: - branch: ${{ github.ref_name }} - commit_author: Author - commit_message: "chore: updated releases" + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: updated releases" + branch: update-releases + branch-suffix: timestamp + base: develop + title: "chore: updated releases" + body: | + This is an auto-generated pull request that updates releases. + reviewers: tusharmath + maintainer-can-modify: true