Create main.yml
Showing
.github/workflows/main.yml
0 → 100644
name: GitlabSync | |||
on: | |||
- push | |||
- delete | |||
jobs: | |||
sync: | |||
runs-on: ubuntu-latest | |||
name: Git Repo Sync | |||
steps: | |||
- uses: actions/checkout@v2 | |||
with: | |||
fetch-depth: 0 | |||
- uses: wangchucheng/[email protected] | |||
with: | |||
# Such as https://github.com/wangchucheng/git-repo-sync.git | |||
target-url: ${{ secrets.TARGET_URL }} | |||
# Such as wangchucheng | |||
target-username: ${{ secrets.TARGET_USERNAME }} | |||
# You can store token in your project's 'Setting > Secrets' and reference the name here. Such as ${{ secrets.ACCESS\_TOKEN }} | |||
target-token: ${{ secrets.TARGET_TOKEN }} | |||
Please register or sign in to comment