-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.12 KB
/
test-robot-remove.yml
File metadata and controls
39 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Remove Robot Test
on:
workflow_call:
inputs:
label-test-robot-done:
description: 'Label name indicating the PR has been test-robot-done'
type: string
required: false
default: 'test-robot-done'
label-test-robot-needed:
description: 'Label name indicating the PR needs robot testing'
type: string
required: false
default: 'test-robot-needed'
secrets:
token:
description: 'GitHub token or PAT'
required: false
permissions:
contents: read
pull-requests: write
jobs:
test-robot-remove:
if: github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, inputs.label-test-robot-done)
name: Remove Robot Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Remove Robot Test Label
uses: getdevopspro/github-actions/test/label/done/remove@v6.3.2
with:
label-done: ${{ inputs.label-test-robot-done }}
label-needed: ${{ inputs.label-test-robot-needed }}
test-name: Robot
token: ${{ secrets.token }}