Skip to content

Commit 5428805

Browse files
authored
feat(GAT-7966): updated semantic pipeline for merge back to dev (#37)
1 parent 28e0131 commit 5428805

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Deploy Release
2-
run-name: ${{ github.actor }} triggered deploy to ${{ github.event.inputs.env }} pipeline
2+
run-name: ${{ github.actor }} triggered deploy to ${{ github.event.inputs.env }} pipeline for tag version ${{ github.event.inputs.tag_version }}
33

44
on:
55
workflow_dispatch:

.github/workflows/semantic-release-workflow.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fetch-depth: 0
3737

3838
- name: Set up Node.js
39-
uses: actions/setup-node@v4
39+
uses: actions/setup-node@v5
4040
with:
4141
node-version: ${{ env.NODE_VERSION }}
4242

@@ -59,17 +59,23 @@ jobs:
5959
git fetch origin main
6060
git reset --hard origin/main
6161
62+
- name: Read VERSION file
63+
id: getversion
64+
run: |
65+
sed -n 's/^appVersion:\(.*\)/\1/p' < "chart/gateway-medcat/Chart.yaml" > "version"
66+
echo "version=$(sed 's/.*\"\(.*\)\".*/\1/g' "version")" >> "$GITHUB_OUTPUT"
67+
6268
- name: Merge changes from main to dev
6369
env:
6470
GITHUB_TOKEN: ${{ steps.generate-deployment-token.outputs.token }}
71+
RELEASE_VERSION: ${{ steps.getversion.outputs.version }}
6572
run: |
6673
git fetch origin dev
6774
git checkout dev
68-
git merge --no-ff main || true
69-
git checkout --theirs .
75+
git merge --squash origin/main || true
76+
git checkout --theirs . || true
7077
git add .
71-
git commit -m "Auto-resolve merge conflicts by keeping main's changes [skip ci]" || echo "No changes to commit"
72-
78+
git commit --allow-empty -m "sync: update dev with latest main changes from release ${RELEASE_VERSION} (squash sync) [skip ci]"
7379
git push origin dev
7480
7581
build:

0 commit comments

Comments
 (0)