Skip to content

Commit

Permalink
Create push_to_gitlab.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
catusf authored Jan 6, 2023
1 parent 21e162f commit 7619b4e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/push_to_gitlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Sync with Gitlab

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 }}

0 comments on commit 7619b4e

Please sign in to comment.