Skip to content

Commit 01c4274

Browse files
authored
Update auto-merge.yml ready to deploy
1 parent 74b60a9 commit 01c4274

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/auto-merge.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,31 @@ name: Auto Merge Develop to Main
33
on:
44
push:
55
branches:
6-
- Develop # Trigger action on push to Develop
6+
- Develop
77

88
jobs:
99
merge:
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: write # ✅ Grant write access for pushing changes
12+
contents: write
1313

1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v2
1717
with:
18-
fetch-depth: 0 # Ensure full history for merge
18+
fetch-depth: 0
1919

2020
- name: Get last commit message on Develop
2121
id: last_commit
2222
run: |
2323
LAST_COMMIT_MSG=$(git log -1 --pretty=%B)
2424
echo "commit_message=$LAST_COMMIT_MSG" >> $GITHUB_ENV
2525
26+
- name: Set up Git with Your Credentials
27+
run: |
28+
git config user.name "RNViththagan"
29+
git config user.email "[email protected]"
30+
2631
- name: Checkout main branch
2732
run: |
2833
git fetch origin main
@@ -49,4 +54,4 @@ jobs:
4954
run: |
5055
git push origin main
5156
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # ✅ Authenticate using GitHub token
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)