add new workflow to sync to gitlab
This commit is contained in:
parent
309768794e
commit
c4ebe77067
|
@ -0,0 +1,22 @@
|
|||
name: GitLab Sync
|
||||
|
||||
on:
|
||||
- push
|
||||
- delete
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-latest
|
||||
name: Git Repo Sync
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: wangchucheng/git-repo-sync@v0.1.0
|
||||
with:
|
||||
# Such as https://github.com/wangchucheng/git-repo-sync.git
|
||||
target-url: ${{ secrets.GITLAB_URL }}
|
||||
# Such as wangchucheng
|
||||
target-username: ${{ secrets.GITLAB_USERNAME }}
|
||||
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }}
|
||||
target-token: ${{ secrets.GITLAB_ACCESS }}
|
Loading…
Reference in New Issue