Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

cleanlab/deploy-bot

v1.1.1

cleanlab/deploy-bot

play

cleanlab/deploy-bot

Deployment merge handler

Installation

Copy and paste the following snippet into your .yml file.

              

- name: cleanlab/deploy-bot

uses: cleanlab/[email protected]

Learn more about this action in cleanlab/deploy-bot

Choose a version

deploy-bot

This action manages deployments by creating deployment PRs between a designated source and target branch.

The action first creates a deployment branch, from the source branch, named deployment/%m-%d-%Y. Then, a PR is created, targeting the target branch from the source branch. All contributors to the PR are added as reviewers.

Example Workflow

An example workflow is shown below. This workflow runs the deploy-bot every weekday at 9AM ET.

name: deploy-bot

on:
  schedule:
    - cron: 0 13 * * 1-5

jobs:
    deploy:
        steps:
            - uses: cleanlab/[email protected]
              with:
                source: staging
                target: main
                pr_body: "Daily deplyoment PR :robot:"