-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
74 lines (74 loc) · 2.17 KB
/
Copy pathaction.yml
File metadata and controls
74 lines (74 loc) · 2.17 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Action.yml
name: 'bzcafe'
description: 'BlueZ CI Automation Framework'
# NOTE for consuming workflows:
# 1. The CI task creates individual GitHub Check Runs per test. The consuming
# workflow must grant 'checks: write' permission to GITHUB_TOKEN:
#
# permissions:
# checks: write
# pull-requests: write
#
# 2. To allow retriggering CI by reopening a PR, ensure the pull_request
# trigger includes the 'reopened' type (included by default):
#
# on:
# pull_request:
# types: [opened, synchronize, reopened]
#
inputs:
task:
description: Name of task to perform. [sync, patchwork, ci, cleanup]
required: true
base_folder:
description: Base folder for work
default: 'base'
upstream_repo:
description: Upstream repo to be sync'ed
default: 'default'
upstream_branch:
description: The name of branch to be sync'ed
default: 'master'
origin_branch:
description: The name of branch to sync
default: 'master'
workflow:
description: The name of branch where workflow items are checked in
default: 'master'
space:
description: Target space of the repo [user, kernel]
default: 'kernel'
github_token:
description: Github token (PAT for PR comments, patchwork, etc.)
default: ''
github_checks_token:
description: >
GitHub token for creating Check Runs. Must be the Actions-provided
GITHUB_TOKEN (not a PAT). Defaults to the automatic github.token.
default: ${{ github.token }}
email_token:
description: Email token
default: ''
patchwork_token:
description: Patchwork token
default: ''
patchwork_user:
description: Patchwork username
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
env:
ACTION_TOKEN: ${{ inputs.github_token }}
GITHUB_CHECKS_TOKEN: ${{ inputs.github_checks_token }}
EMAIL_TOKEN: ${{ inputs.email_token }}
PATCHWORK_TOKEN: ${{ inputs.patchwork_token }}
PATCHWORK_USER: ${{ inputs.patchwork_user }}
args:
- ${{ inputs.task }}
- ${{ inputs.base_folder }}
- ${{ inputs.upstream_repo }}
- ${{ inputs.upstream_branch }}
- ${{ inputs.origin_branch }}
- ${{ inputs.workflow }}
- ${{ inputs.space }}