Skip to content

Commit e0ced46

Browse files
Actions and merging (#102)
* change to merge from bash scritp * lets use main Signed-off-by: Rob Sewell <mrrobsewell@outlook.com> --------- Signed-off-by: Rob Sewell <mrrobsewell@outlook.com> Co-authored-by: Rob Sewell <mrrobsewell@outlook.com>
1 parent 6c0ed3f commit e0ced46

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/deploy-module.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
with:
3737
ref: ${{ github.head_ref }} # checkout the correct branch name
3838
fetch-depth: 0
39+
token: ${{ secrets.REPO_TOKEN }}
3940
- name: Install GitVersion
4041
uses: gittools/actions/gitversion/setup@v0.9.15
4142
with:
@@ -86,11 +87,15 @@ jobs:
8687
GalleryApiToken: ${{ secrets.GalleryApiToken }}
8788
ReleaseBranch: main
8889
MainGitBranch: main
90+
- name: Set Git config
91+
run: |
92+
git config --local user.email "actions@github.com"
93+
git config --local user.name "Github Actions"
8994
- name: Merge main -> develop
90-
# This step merges the main branch into the develop branch after a successful deployment. This ensures that the develop branch includes the tag for the latest release.
91-
uses: devmasx/merge-branch@1.4.0
92-
with:
93-
type: now
94-
from_branch: main
95-
target_branch: develop
96-
github_token: ${{ secrets.REPO_TOKEN }}
95+
# This step merges the main branch into the develop branch after a successful deployment. This ensures that the develop branch includes the tag for the latest release.
96+
run: |
97+
git fetch --unshallow
98+
git checkout develop
99+
git pull
100+
git merge --no-ff main -m "Auto-merge main back to dev"
101+
git push

0 commit comments

Comments
 (0)