Skip to content

Commit e4f47ac

Browse files
authored
Add workflow to update from main branch
1 parent 42fd0fe commit e4f47ac

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: πŸ”„ Update from main
2+
3+
on:
4+
workflow_dispatch: πŸ–±οΈ
5+
6+
permissions:
7+
contents: write ✍️
8+
9+
jobs:
10+
update:
11+
name: πŸš€ Merge main into target branch
12+
runs-on: ubuntu-latest 🐧
13+
14+
steps:
15+
- name: πŸ“₯ Checkout target branch
16+
uses: actions/checkout@v4
17+
with:
18+
ref: your-branch-name
19+
fetch-depth: 0
20+
21+
- name: πŸ”€ Merge main
22+
run: |
23+
git config user.name "github-actions πŸ€–"
24+
git config user.email "actions@github.com"
25+
git fetch origin main
26+
git merge origin/main --no-edit βœ…
27+
git push πŸš€

0 commit comments

Comments
Β (0)