diff --git a/.github/workflows/auto_merge.yml b/.github/workflows/auto_merge.yml new file mode 100644 index 0000000..d3e0e6f --- /dev/null +++ b/.github/workflows/auto_merge.yml @@ -0,0 +1,27 @@ +name: Merge main into dev + +on: + push: + branches: + - main + +jobs: + update-dev: + permissions: write-all + name: update-dev + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: | + git config user.name 'GitHub Actions' + git config user.email 'actions@users.noreply.github.com' + git checkout dev + git merge main + echo "Done with merge" + - name: Push to dev + uses: CasperWA/push-protected@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + branch: dev \ No newline at end of file