-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.5 KB
/
test-robot-label.yml
File metadata and controls
52 lines (47 loc) · 1.5 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
48
49
50
51
52
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.label.name == inputs['label-test-robot-done'] ||
github.event.label.name == inputs['label-test-robot-needed']
name: Robot Test Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Robot Test Done Label
if: >
github.event.action == 'labeled' &&
github.event.label.name == inputs['label-test-robot-done']
uses: getdevopspro/github-actions/test/label/done/added@v6.3.2
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/job-rerun@v6.3.2
with:
workflow-id: pull-request.yml
token: ${{ secrets.token }}
job-name: "Job / Robot Test Check"