From 5f8c0db9914ab68f0d02aa22a587277c3df4d5e4 Mon Sep 17 00:00:00 2001 From: Furkan Yavuz Date: Sat, 4 Sep 2021 14:42:28 +0300 Subject: [PATCH] update workflow --- .github/workflows/on-version-update.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/on-version-update.yml b/.github/workflows/on-version-update.yml index 7689755..ccdba8d 100644 --- a/.github/workflows/on-version-update.yml +++ b/.github/workflows/on-version-update.yml @@ -28,3 +28,29 @@ jobs: with: tag-prefix: '' token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }} + + create-version-update-pr: + name: "Create Version Update PR" + runs-on: ubuntu-latest + needs: bump-version + + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + with: + token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }} + ref: develop + + - name: Hard Reset Master + run: | + git fetch origin master:master + git reset --hard master + + - name: Create PR + uses: peter-evans/create-pull-request@v3 + with: + token: ${{ secrets.MASTER_BRANCH_ACCESS_TOKEN }} + branch: version-update + delete-branch: true + base: develop + title: 'Version Update PR'