Skip to content

Commit

Permalink
Update oc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmapper authored May 27, 2024
1 parent 13fe74a commit 0186c5e
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/oc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ jobs:
sync:
runs-on: ubuntu-latest
name: Git Repo Sync

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wangchucheng/[email protected]
with:
target-url: ${{ secrets.TARGET_URL }}
target-username: ${{ secrets.TARGET_USERNAME }}
target-token: ${{ secrets.TARGET_TOKEN }}
- name: Checkout GitHub Repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Configure Git and Sync to GitLab
run: |
git remote add gitlab https://oauth2:${{ secrets.TARGET_TOKEN }}@${{ secrets.TARGET_URL }}
git push gitlab HEAD:main

0 comments on commit 0186c5e

Please sign in to comment.