From c9e8584063670532e870f290be3dd38732d4052c Mon Sep 17 00:00:00 2001 From: Alfredo Moralejo Date: Fri, 10 Jan 2025 16:37:03 +0100 Subject: [PATCH] Add a github action to sync content from main to fr1 branch In order to align with the resto of operators we need to have a 18.0-fr1 branch. However, we do not want to manually cherry-pick every commit but to get any new commit into the branch until we have a fully functional repo. This patch is adding a job which will sync content from main to the branch 18.0-fr1 after any merge into the main branch. --- .github/workflows/sync-to-fr1-branch.yaml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/sync-to-fr1-branch.yaml diff --git a/.github/workflows/sync-to-fr1-branch.yaml b/.github/workflows/sync-to-fr1-branch.yaml new file mode 100644 index 0000000..db5699f --- /dev/null +++ b/.github/workflows/sync-to-fr1-branch.yaml @@ -0,0 +1,24 @@ +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