-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.29 KB
/
test-robot-label.yml
File metadata and controls
47 lines (42 loc) · 1.29 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
40
41
42
43
44
45
46
47
name: Robot Test Label
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
actions: write
jobs:
test-robot-label:
if: github.event.action == 'labeled' &&
github.event.label.name == inputs['label-test-robot-done']
name: Robot Test Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Robot Test Label
uses: getdevopspro/github-actions/test/label@v6.2.4
with:
label-done: ${{ inputs.label-test-robot-done }}
label-needed: ${{ inputs.label-test-robot-needed }}
test-name: Robot
token: ${{ secrets.token }}
- name: Rerun pull-request workflow
uses: getdevopspro/github-actions/pr/checks-rerun@v6.2.4
with:
workflow-id: pull-request.yml
token: ${{ secrets.token }}