Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Deploy Release
run-name: ${{ github.actor }} triggered deploy to ${{ github.event.inputs.env }} pipeline
run-name: ${{ github.actor }} triggered deploy to ${{ github.event.inputs.env }} pipeline for tag version ${{ github.event.inputs.tag_version }}

on:
workflow_dispatch:
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/semantic-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -59,17 +59,23 @@ jobs:
git fetch origin main
git reset --hard origin/main

- name: Read VERSION file
id: getversion
run: |
sed -n 's/^appVersion:\(.*\)/\1/p' < "chart/gateway-medcat/Chart.yaml" > "version"
echo "version=$(sed 's/.*\"\(.*\)\".*/\1/g' "version")" >> "$GITHUB_OUTPUT"

- name: Merge changes from main to dev
env:
GITHUB_TOKEN: ${{ steps.generate-deployment-token.outputs.token }}
RELEASE_VERSION: ${{ steps.getversion.outputs.version }}
run: |
git fetch origin dev
git checkout dev
git merge --no-ff main || true
git checkout --theirs .
git merge --squash origin/main || true
git checkout --theirs . || true
git add .
git commit -m "Auto-resolve merge conflicts by keeping main's changes [skip ci]" || echo "No changes to commit"

git commit --allow-empty -m "sync: update dev with latest main changes from release ${RELEASE_VERSION} (squash sync) [skip ci]"
git push origin dev

build:
Expand Down
Loading