Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
Add github-to-gitlab sync
  • Loading branch information
vykozlov authored Nov 28, 2022
1 parent 9ed482a commit cc3b003
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: GitlabSync

on:
release:
branches:
- main
- master
push:
branches:
- main
- master
- 'releases/**'
delete:


jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# only github repos can be used..
- uses: vykozlov/[email protected]
# FORK of https://github.com/wangchucheng/git-repo-sync.git
with:
# You can store token in your project's 'Setting > Secrets' and reference the names here. Such as ${{ secrets.ACCESS\_TOKEN }}
target-url: ${{ secrets.TARGET_URL }}
target-username: ${{ secrets.TARGET_USERNAME }}
target-token: ${{ secrets.TARGET_TOKEN }}

0 comments on commit cc3b003

Please sign in to comment.