Automerge workflow #39401
This file contains 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
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: {} |