Skip to content

Commit 0c6f209

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 c25ffad commit 0c6f209

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/syncmirror.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
name: 'Sync with GL mirror'
2-
on: push
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
7+
concurrency:
8+
group: ${{ github.repository }}
9+
cancel-in-progress: true
310

411
jobs:
512
sync:
@@ -10,6 +17,6 @@ jobs:
1017
submodules: 'true'
1118
fetch-depth: 0
1219
- name: Add mirror auth info
13-
run: git remote add alternate https://AptiviCEO:${{ secrets.GL_APIKEY }}@gitlab.com/aptivi/analytics/NamesList.git
20+
run: git remote add alternate https://AptiviCEO:${{ secrets.GL_APIKEY }}@gitlab.com/aptivi/analytics/${{ github.repository }}.git
1421
- name: Push to mirror
1522
run: git push alternate

0 commit comments

Comments
 (0)