Skip to content

Commit df87115

Browse files
authored
Added GitHub action to restart PR builds (#1796)
Added GitHub action to restart PR builds
1 parent b1f27d7 commit df87115

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/clean-ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Clean PR builds
3+
4+
'on':
5+
workflow_dispatch:
6+
inputs:
7+
pr:
8+
description: PR number in this repo to be cleaned
9+
type: string # can't use number here
10+
required: true
11+
12+
# Warning: GitHub limits the total number of inputs to 10, so a maximum of
13+
# 9 checks is allowed here!
14+
# Warning: the check_* keys are magic and must consist of the string
15+
# "check_" followed by the applicable check name exactly. The
16+
# "description" field is only the human-readable label for the input.
17+
'check_build/O2DPG/sim/o2':
18+
description: build/O2DPG/sim/o2
19+
type: boolean
20+
default: true
21+
'check_build/O2DPG/O2fst/o2':
22+
description: build/O2DPG/O2fst/o2
23+
type: boolean
24+
default: true
25+
26+
permissions: {}
27+
28+
jobs:
29+
clean:
30+
name: Clean PR checks
31+
uses: alisw/ali-bot/.github/workflows/clean-pr-checks.yml@master
32+
with:
33+
owner: ${{ github.event.repository.owner.login }}
34+
repo: ${{ github.event.repository.name }}
35+
pr: ${{ github.event.inputs.pr }}
36+
checks: ${{ toJSON(github.event.inputs) }}
37+
permissions:
38+
pull-requests: read # to get last commit for pr (octokit/graphql-action)
39+
statuses: write # for set-github-status

0 commit comments

Comments
 (0)