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