File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3,26 +3,31 @@ name: Auto Merge Develop to Main
33on :
44 push :
55 branches :
6- - Develop # Trigger action on push to Develop
6+ - Develop
77
88jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments