-
Notifications
You must be signed in to change notification settings - Fork 65
95 lines (89 loc) · 3.27 KB
/
pr-verify.yml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Verify Pull Request
on: # yamllint disable-line rule:truthy
pull_request_target:
types: [opened, edited, synchronize, reopened, ready_for_review]
# yamllint disable rule:line-length
jobs:
pr-verify:
runs-on: ubuntu-latest
name: Verify Pull Request
if: github.event_name != 'pull_request_target' || !github.event.pull_request.draft
steps:
- name: Verifier action
id: verifier
uses: kubernetes-sigs/kubebuilder-release-tools@4f3d1085b4458a49ed86918b4b55505716715b77 # v0.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Verify Boilerplate
run: make verify-boilerplate
- name: Verify Shellcheck
run: make verify-shellcheck
- name: Verify Starlark
run: make verify-starlark
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3
with:
node-version: "18"
- name: Install renovate
run: npm i -g [email protected] # TODO update this via renovatebot
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate.json5
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate/approval.json5
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate/commitMessage.json5
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate/golang.json5
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate/groups.json5
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate/labels.json5
- name: Validate config
run: renovate-config-validator
env:
RENOVATE_CONFIG_FILE: .github/renovate/regexManagers.json5
- name: Generate Token
uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1
id: generate-token
with:
app_id: ${{ secrets.SYSELF_APP_ID }}
private_key: ${{ secrets.SYSELF_APP_PRIVATE_KEY }}
- name: Generate Size
uses: pascalgn/size-label-action@37a5ad4ae20ea8032abf169d953bcd661fd82cd3 # v0.5.0
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
with:
sizes: >
{
"0": "XS",
"20": "S",
"50": "M",
"200": "L",
"800": "XL",
"2000": "XXL"
}
- name: Generate Labels
uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4
with:
configuration-path: .github/labeler.yaml
repo-token: ${{ steps.generate-token.outputs.token }}
- name: Sync Labels
uses: EndBug/label-sync@da00f2c11fdb78e4fae44adac2fdd713778ea3e8 # v2
with:
config-file: .github/labels.yaml
token: ${{ steps.generate-token.outputs.token }}