(auto merged) Bump nginx from 1.27.4 to 1.27.5 in /kubernetes/k8s/wordpress #306
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: auto-merge | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| auto-merge: | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.head_ref, 'dependabot/') || | |
| startsWith(github.head_ref, 'actions/') | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.AUTO_MERGE_BOT_APP_ID }} | |
| private-key: ${{ secrets.AUTO_MERGE_BOT_PRIVATE_KEY }} | |
| - name: Approve & enable auto-merge for Dependabot/Actions PR | |
| run: | | |
| gh pr review --approve "$PR_URL" | |
| gh pr edit "$PR_URL" -t "(auto merged) $PR_TITLE" | |
| # Retry to work around "Base branch was modified." error. | |
| # Ref: https://github.com/cli/cli/issues/8092 | |
| for i in {1..3}; do | |
| gh pr merge --auto --merge "$PR_URL" && exit 0 | |
| sleep 5 | |
| done | |
| exit 1 | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| GH_TOKEN: ${{ steps.generate_token.outputs.token }} |