Skip to content

Commit 48402c7

Browse files
committed
feat: add workflow to automatically open PR on develop update
1 parent 071093b commit 48402c7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/auto-pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync main with develop via a PR
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
jobs:
7+
productionPromotion:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
ref: main
13+
- name: Reset develop branch
14+
run: |
15+
git fetch origin develop:develop
16+
git reset --hard develop
17+
- name: Create Pull Request
18+
uses: peter-evans/create-pull-request@v4
19+
with:
20+
branch: main-sync-with-develop
21+
reviewers: vishalnarkhede, madsroskar, khushal87, santhoshvai, vanGalilea

0 commit comments

Comments
 (0)