Skip to content

Commit d060f49

Browse files
committed
Merge pull request #91 from Frederick888/switch-back-to-git-sync into master
* switch-back-to-git-sync: ci: Switch to fork of git-sync ci: Revert "Migrate to action-pack/gitlab-sync"
2 parents 2aa5163 + 7550b3c commit d060f49

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.github/workflows/repo-sync.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
name: GitLab Sync
22

3-
on: [push, create, delete]
3+
on: push
44

55
jobs:
6-
sync:
7-
name: Synchronise to GitLab
6+
branch-sync:
7+
name: Synchronise Branches
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
with:
12-
fetch-depth: 0
13-
- uses: action-pack/gitlab-sync@v3
14-
with:
15-
username: Frederick888
16-
url: "https://git.tsundere.moe/Frederick888/git-credential-keepassxc.git"
17-
token: ${{ secrets.GITLAB_ACCESS_TOKEN }}
10+
- name: repo-sync
11+
uses: Frederick888/git-sync@master
12+
with:
13+
source_repo: "https://github.com/Frederick888/git-credential-keepassxc.git"
14+
source_branch: "refs/remotes/source/*"
15+
destination_repo: "https://Frederick888:${{ secrets.GITLAB_ACCESS_TOKEN }}@git.tsundere.moe/Frederick888/git-credential-keepassxc.git"
16+
destination_branch: "refs/heads/*"
17+
18+
tag-sync:
19+
name: Synchronise Tags
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: repo-sync
23+
uses: Frederick888/git-sync@master
24+
with:
25+
source_repo: "https://github.com/Frederick888/git-credential-keepassxc.git"
26+
source_branch: "refs/tags/*"
27+
destination_repo: "https://Frederick888:${{ secrets.GITLAB_ACCESS_TOKEN }}@git.tsundere.moe/Frederick888/git-credential-keepassxc.git"
28+
destination_branch: "refs/tags/*"

0 commit comments

Comments
 (0)