diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml new file mode 100644 index 0000000..64500cd --- /dev/null +++ b/.github/workflows/sync-main.yml @@ -0,0 +1,27 @@ +name: Sync master with main + +on: + push: + branches: + - master + +permissions: + contents: write + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout master branch + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Update main branch + run: | + git checkout master + git fetch origin + git checkout main + git pull + git merge origin/master + git push origin main