From 012089a44d155c5e77983dfac995da5c2893e3b9 Mon Sep 17 00:00:00 2001 From: MartynasKi Date: Thu, 28 Aug 2025 16:37:04 +0300 Subject: [PATCH] auto-pr to master added --- .github/workflows/auto-pr-to-master.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-pr-to-master.yml diff --git a/.github/workflows/auto-pr-to-master.yml b/.github/workflows/auto-pr-to-master.yml new file mode 100644 index 0000000..df594b9 --- /dev/null +++ b/.github/workflows/auto-pr-to-master.yml @@ -0,0 +1,26 @@ +name: Auto PR to master + +on: + push: + branches: ["production"] + +permissions: + contents: write + pull-requests: write + +jobs: + pull-request: + name: Open PR to master + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + name: checkout + + - uses: repo-sync/pull-request@v2 + name: pull-request + with: + destination_branch: "master" + pr_title: "Pulling ${{ github.ref_name }} => master" + pr_body: "*An automated PR*:\nfrom ${{ github.ref_name }} => master" + github_token: ${{ secrets.GITHUB_TOKEN }}