Skip to content

Commit

Permalink
ci: Allow auto-merge CN update PR (pingcap#250)
Browse files Browse the repository at this point in the history
Signed-off-by: Wish <[email protected]>
  • Loading branch information
breezewish authored Jul 24, 2024
1 parent 2724412 commit 0212ecb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: create a PR to update CN image
type: boolean
default: false
auto_merge_update_cn_image:
description: auto merge PR to update CN image
type: boolean
default: false

jobs:
build:
Expand Down Expand Up @@ -178,4 +182,10 @@ jobs:
repo: tidbcloud/tiflash-autoscale-supervisor
ref: refs/heads/main
token: ${{ secrets.GIT_ACTION_BOT }}
inputs: '{ "commit": "${{ github.sha }}", "extra_assignee": "${{ github.actor }}", "extra_url": "${{github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }'
inputs: |
{
"commit": "${{ github.sha }}",
"extra_assignee": "${{ github.actor }}",
"extra_url": "${{github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
"auto_approve": "${{ inputs.auto_merge_update_cn_image }}"
}

0 comments on commit 0212ecb

Please sign in to comment.