update deepl translation #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 config --global user.email "[email protected]" | |
git config --global user.name "Maxime Alza" | |
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 checkout -b source-master source/master | |
git checkout master | |
git merge -X theirs source-master --allow-unrelated-histories -m "Merge source into master" | |
git push origin master | |
env: | |
token: ${{ secrets.GITLAB_TOKEN }} |