Add a github action to sync content from main to fr1 branch #1
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 to fr1 branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
mirror-main-to-fr1: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Push changes to fr1 branch | |
run: | | |
git checkout main | |
git branch -a -v | |
git push origin main:18.0-fr1 |