Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 62e6964

Browse files
author
Martin Peck
committedMay 19, 2025·
Try passing ssh key via git command line argument.
1 parent 3710e57 commit 62e6964

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎.github/workflows/gitlab-mirror.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
- name: Sync push
2828
if: ${{ github.event_name == 'push' }}
2929
run: |
30-
git remote add target $TARGET_REPO
31-
git push -f --all target
32-
git push -f --tags target
30+
git -c "core.sshCommand=ssh -i ~/.ssh/id" remote add target $TARGET_REPO
31+
git -c "core.sshCommand=ssh -i ~/.ssh/id" push -f --all target
32+
git -c "core.sshCommand=ssh -i ~/.ssh/id" push -f --tags target
3333
- name: Sync delete
3434
if: ${{ github.event_name == 'delete' }}
3535
run: |
36-
git remote add target $TARGET_REPO
37-
git push -d target ${GITHUB_EVENT_REF}
36+
git -c "core.sshCommand=ssh -i ~/.ssh/id" remote add target $TARGET_REPO
37+
git -c "core.sshCommand=ssh -i ~/.ssh/id" push -d target ${GITHUB_EVENT_REF}

0 commit comments

Comments
 (0)
Please sign in to comment.