From b8bb82540eb4cfef19e21f8ef9fd3f636cf0d13b Mon Sep 17 00:00:00 2001 From: Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> Date: Sat, 13 Jul 2024 15:57:55 +0530 Subject: T6572: added create-pr workflow --- .github/workflows/trigger-pr.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/trigger-pr.yml (limited to '.github/workflows') diff --git a/.github/workflows/trigger-pr.yml b/.github/workflows/trigger-pr.yml new file mode 100644 index 000000000..41347eacf --- /dev/null +++ b/.github/workflows/trigger-pr.yml @@ -0,0 +1,21 @@ +name: Trigger PR +on: + pull_request_target: + types: + - closed + branches: + - current + +jobs: + trigger-repo-sync: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Trigger PR + shell: bash + run: | + curl -X POST \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Authorization: Bearer ${{ secrets.PAT }}" \ + https://api.github.com/repos/${{ secrets.REMOTE_OWNER }}/${{ secrets.REMOTE_REPO }}/actions/workflows/create-pr.yml/dispatches \ + -d '{"ref": "git-actions", "inputs":{"pr_number":"${{ github.event.pull_request.number }}", "pr_source_branch": "current", "pr_target_branch": "circinus", "pr_message":"${{ github.event.pull_request.title }}", "pr_source_repo":"${{ github.repository }}" }}' -- cgit v1.2.3