Skip to content

Commit

Permalink
Circumvent limit on the choices
Browse files Browse the repository at this point in the history
Separate cleanup between linux and macOS
  • Loading branch information
ktf committed May 17, 2024
1 parent e73499e commit fe69632
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/clean-pr-checks-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: Clean macOS PR checks

'on':
workflow_dispatch:
inputs:
pr:
description: PR number in this repo to be cleaned
type: string # can't use number here
required: true

# Warning: GitHub limits the total number of inputs to 10, so a maximum of
# 9 checks is allowed here!
# Warning: the check_* keys are magic and must consist of the string
# "check_" followed by the applicable check name exactly. The
# "description" field is only the human-readable label for the input.
'check_build/alidist/O2Suite/o2/macOS':
description: build/alidist/O2Suite/o2/macOS
type: boolean
default: true
'check_build/alidist/O2Suite/o2/macOS-arm':
description: build/alidist/O2Suite/o2/macOS-arm
type: boolean
default: true

permissions: {}

jobs:
clean:
name: Clean macOS PR checks
uses: alisw/ali-bot/.github/workflows/clean-pr-checks.yml@master
with:
owner: ${{ github.event.repository.owner.login }}
repo: ${{ github.event.repository.name }}
pr: ${{ github.event.inputs.pr }}
checks: ${{ toJSON(github.event.inputs) }}
permissions:
pull-requests: read # to get last commit for pr (octokit/graphql-action)
statuses: write # for set-github-status
8 changes: 0 additions & 8 deletions .github/workflows/clean-pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ name: Clean PR checks
description: build/O2/fullCI/alidist
type: boolean
default: true
'check_build/alidist/O2Suite/o2/macOS':
description: build/alidist/O2Suite/o2/macOS
type: boolean
default: true
'check_build/alidist/O2Suite/o2/macOS-arm':
description: build/alidist/O2Suite/o2/macOS-arm
type: boolean
default: true
'check_build/AliGenerators/generators':
description: build/AliGenerators/generators
type: boolean
Expand Down

0 comments on commit fe69632

Please sign in to comment.