From e5ffdd53cf63b7d821c148b30f33bfc9b73a8938 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 14 Dec 2022 23:48:28 +0800 Subject: [PATCH] GitHub action to auto-create PR to merge main to production --- .github/workflows/main2prod.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/main2prod.yml diff --git a/.github/workflows/main2prod.yml b/.github/workflows/main2prod.yml new file mode 100644 index 0000000..0473802 --- /dev/null +++ b/.github/workflows/main2prod.yml @@ -0,0 +1,16 @@ +name: Pull Request to `main` from `production` + +on: + push: + branches: + - main + +jobs: + auto-pull-request: + runs-on: ubuntu-latest + steps: + - uses: vsoch/pull-request-action@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULL_REQUEST_FROM_BRANCH: 'main' + PULL_REQUEST_BRANCH: 'production'