diff --git a/.github/workflows/auto-rebase.yml b/.github/workflows/auto-rebase.yml new file mode 100644 index 0000000..5d85477 --- /dev/null +++ b/.github/workflows/auto-rebase.yml @@ -0,0 +1,24 @@ +name: Rebase groovy-dsl branch automatically +on: + push: + branches: + - kotlin-dsl + workflow_dispatch: + +jobs: + rebase: + if: github.repository_owner == 'gradle' + steps: + - name: checkout + uses: actions/checkout@v4 + with: + ref: groovy-dsl + + - name: rebase + id: rebase + run: git rebase origin/kotlin-dsl + + - name: Push changes + if: ${{ steps.rebase.outputs.result == 'success' }} + run: git push origin groovy-dsl +