Skip to content

Automerge workflow #39419

Automerge workflow

Automerge workflow #39419

jobs:
automerge:
if: github.event.pull_request.head.repo.full_name == github.repository
name: Automerge Workflow
runs-on: ubuntu-latest
steps:
- if: env.GITHUB_TOKEN != null
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
MERGE_COMMIT_MESSAGE: pull-request-title
MERGE_FORKS: "false"
MERGE_LABELS: automation/merge
MERGE_METHOD: squash
MERGE_REMOVE_LABELS: automation/merge
MERGE_RETRIES: "50"
MERGE_RETRY_SLEEP: "60000"
UPDATE_LABELS: automation/update
UPDATE_METHOD: rebase
name: Automerge
uses: pascalgn/[email protected]
notify:
if: failure()
name: Send slack notification
runs-on: ubuntu-latest
needs: [automerge]
steps:
- name: Slack Notification
uses: docker://sholung/action-slack-notify:v2.3.0
env:
SLACK_CHANNEL: docs-ops
SLACK_COLOR: "#F54242"
SLACK_MESSAGE: "automerge failure in pulumi/docs repo :meow_sad:"
SLACK_USERNAME: docsbot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON: https://www.pulumi.com/logos/brand/avatar-on-white.png
name: Automerge workflow
"on":
check_suite:
types:
- completed
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened
- edited
- ready_for_review
- reopened
- unlocked
pull_request_review:
types:
- submitted
status: {}