Skip to content

Commit db53a60

Browse files
committed
fix: Update GitLab mirroring GitHub Action
1 parent e1d2d2f commit db53a60

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/gitlab-mirror.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,19 @@ jobs:
66
to_gitlab:
77
runs-on: ubuntu-latest
88
steps: # <-- must use actions/checkout@v4 before mirroring!
9-
- uses: actions/checkout@v4
9+
- name: Checkout
10+
uses: actions/checkout@v4
1011
with:
1112
fetch-depth: 0
12-
- uses: pixta-dev/repository-mirroring-action@v1
13+
- name: Re-install old version of git # <-- temporary workaround for git version issue w/ v2.48.1
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get purge git
17+
sudo apt-get autoremove
18+
sudo apt-get install git
19+
- name: Mirror to GitLab
20+
uses: pixta-dev/repository-mirroring-action@v1
1321
with:
1422
target_repo_url: git@gitlab.ldbar.ch:interactivethings/visualization-tool.git
1523
ssh_private_key: # <-- use 'secrets' to pass credential information.
16-
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
24+
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}

0 commit comments

Comments
 (0)