diff options
author | Vijayakumar A <36878324+kumvijaya@users.noreply.github.com> | 2024-07-13 15:57:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-13 15:57:08 +0530 |
commit | 652592bcace65607680a110cbb2b2101836cf023 (patch) | |
tree | df703156f7fe1416e6d838a51af4c95c93755a5b | |
parent | 887de85b7a78dde370ddb71ddcb3f87557536e08 (diff) | |
download | vyos-1x-652592bcace65607680a110cbb2b2101836cf023.tar.gz vyos-1x-652592bcace65607680a110cbb2b2101836cf023.zip |
T6572: added trigger-pr workflow
-rw-r--r-- | .github/trigger-pr.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/trigger-pr.yml b/.github/trigger-pr.yml new file mode 100644 index 000000000..41347eacf --- /dev/null +++ b/.github/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 }}" }}' |