chore(deps-dev): bump the dependencies group across 1 directory with … #619
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: Mirror Content to French repo | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "CNAME" | |
- ".github/" | |
- "!.github/workflows/sync-french.yml" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'canada-ca' | |
steps: | |
- name: Checkout Main repo | |
uses: actions/checkout@v4 | |
with: | |
path: english | |
submodules: true | |
- name: Checkout French mirror | |
uses: actions/checkout@v4 | |
with: | |
repository: canada-ca/ore-ero-fr | |
path: french | |
ref: master | |
token: ${{ secrets.PUSH_API_TOKEN }} | |
submodules: true | |
- name: Copy files from English to French | |
run: rsync -avr --delete --exclude=*.git/* --exclude=*.github/* --exclude='*CNAME' english/ french | |
- name: Push back changes to French repo | |
run: | | |
cd french | |
git config --global user.email "[email protected]" | |
git config --global user.name "canada-bot" | |
git add -A | |
git commit -m "Sync Action" || true | |
git push |