Skip to content

Commit 9d179aa

Browse files
committed
2021-06-09 20:50:45
1 parent e8823d1 commit 9d179aa

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ko_fi: "pkgstore"
2+
liberapay: "pkgstore"
3+
patreon: "pkgstore"

.github/workflows/gitlab-sync.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Git Repo Mirror"
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
mirror:
8+
runs-on: ubuntu-latest
9+
name: "Mirror"
10+
steps:
11+
- uses: pkgstore/github-actions-sync@main
12+
with:
13+
source: "https://github.com/${{ github.repository }}"
14+
target: "${{ secrets.GITLAB_SYNC_URL }}/${{ github.repository }}"
15+
username: "${{ secrets.GITLAB_SYNC_USER_NAME }}"
16+
token: "${{ secrets.GITLAB_SYNC_USER_TOKEN }}"

mirror.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ TOKEN="${4}"
77

88
git clone --mirror "${SOURCE}" '/root/git/source' && cd '/root/git/source' || exit
99
git remote add 'target' https://"${USERNAME}":"${TOKEN}"@"${TARGET#https://}"
10-
git push --mirror 'target'
10+
git push -f --mirror 'target'
1111

1212
exit 0

0 commit comments

Comments
 (0)