Skip to content
Draft
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
1 change: 1 addition & 0 deletions .github/workflows/merge-alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
CHANGELOG.md
VERSION
.promu.yml
.gitignore
go.mod
go.sum
assets-cmd: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/merge-flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ jobs:
id: merge
run: |
git merge refs/tags/${{ steps.upstream.outputs.release }} --no-edit || echo 'MERGE_CONFLICT=true' >> $GITHUB_OUTPUT
- name: Resolve conflict due to deleted upstream files
if: ${{ steps.merge.outputs.MERGE_CONFLICT == 'true' }}
run: |
# Remove all files deleted in upstream (UD) before restoring other conflicts
git status --porcelain | awk '{ if ($1=="UD") print $2 }' | xargs -r git rm
- name: Resolve conflict using upstream contents
if: ${{ steps.merge.outputs.MERGE_CONFLICT == 'true' && inputs.restore-upstream != ''}}
run: |
Expand Down
Loading