Skip to content

Commit d98c8d2

Browse files
committed
imp - Mitigate lost commits
--- We're trying to mitigate the lost commits by making a unified group that cancels all operations when two Git instances push to different branches in the same repo at the same time. --- Type: imp Breaking: False Doc Required: False Backport Required: False Part: 1/1
1 parent 1e9a219 commit d98c8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/syncmirror.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- '**'
66

77
concurrency:
8-
group: ${{ github.workflow }}-${{ github.ref }}
8+
group: ${{ github.repository }}
99
cancel-in-progress: true
1010

1111
jobs:
@@ -17,6 +17,6 @@ jobs:
1717
submodules: 'true'
1818
fetch-depth: 0
1919
- name: Add mirror auth info
20-
run: git remote add alternate https://AptiviCEO:${{ secrets.GL_APIKEY }}@gitlab.com/aptivi/main/BassBoom.git
20+
run: git remote add alternate https://AptiviCEO:${{ secrets.GL_APIKEY }}@gitlab.com/aptivi/main/$(echo "${{ github.repository }}" | cut -d "/" -f 2).git
2121
- name: Push to mirror
2222
run: git push alternate

0 commit comments

Comments
 (0)