Skip to content

Commit

Permalink
Create sinc-to-gitlab.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
machimoo authored Jul 4, 2024
1 parent 342185f commit 82c557b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/sinc-to-gitlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Sync to Private Repo

on:
push:
branches:
- master # Change this to the branch you want to monitor

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout source repository
uses: actions/checkout@v2
with:
fetch-depth: 1

- name: Clone the target repository
run: |
git clone https://oauth2:${{ secrets.GITLAB_TOKEN }}@gitlab.com/petranslate/TradEmploi-backend.git
cd TradEmploi-backend
git remote add source https://github.com/France-Travail/TradEmploi-BackEnd.git
git fetch source
git merge source/master
git push origin master
env:
token: ${{ secrets.GITLAB_TOKEN }}

0 comments on commit 82c557b

Please sign in to comment.