Skip to content

Commit 1eb5f50

Browse files
committed
chore: fix deploy PRs
1 parent 1b44cdb commit 1eb5f50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
id: get_latest_tag
2929
run: echo "tag=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT
3030
- name: Checkout latest tag
31-
run: git reset --hard ${{ steps.get_latest_tag.outputs.tag }}
31+
run: |
32+
git reset --hard ${{ steps.get_latest_tag.outputs.tag }}
33+
git merge -X theirs ${{ steps.get_latest_tag.outputs.tag }}
3234
- name: Create Pull Request
3335
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
3436
with:
@@ -56,6 +58,7 @@ jobs:
5658
- name: Set production branch to latest tag deployed to staging
5759
run: |
5860
git reset --hard ${{ steps.get_latest_tag.outputs.tag }}
61+
git merge -X theirs ${{ steps.get_latest_tag.outputs.tag }}
5962
- name: Create Pull Request
6063
uses: peter-evans/[email protected]
6164
with:

0 commit comments

Comments
 (0)