File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : 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
44on :
55 workflow_dispatch :
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments