diff --git a/.github/workflows/sync_release.yml b/.github/workflows/sync_release.yml new file mode 100644 index 0000000..b29af51 --- /dev/null +++ b/.github/workflows/sync_release.yml @@ -0,0 +1,31 @@ +name: Update Test Branch + +on: + push: + branches: [main] + +permissions: write-all + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Git User + run: | + git config user.name "GitHub Action" + git config user.email "" + + - name: Update Test Branch + run: | + git checkout main + git fetch origin + git checkout release + git pull + git rebase origin/main + git push origin release --force +