diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 237059fa..a5844a6e 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -32,6 +32,7 @@ jobs: id: date run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT - name: Create pull request + id: cpr uses: peter-evans/create-pull-request@v5 with: title: "chore: API documentation sync" @@ -39,4 +40,11 @@ jobs: commit-message: Update docs for deployment operator branch: docs-${{steps.date.outputs.date}} labels: release - base: update-docs # TODO main \ No newline at end of file + base: update-docs # TODO main + - name: Enable pull request auto-merge + if: steps.cpr.outputs.pull-request-operation == 'created' + uses: peter-evans/enable-pull-request-automerge@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} + merge-method: squash \ No newline at end of file