Repository navigation
67 lines (65 loc) · 1.92 KB
/
Copy pathrenovate-config-validator.yaml
File metadata and controls
67 lines (65 loc) · 1.92 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
name: renovate-config-validator
on:
workflow_call:
inputs:
ref:
description: "checkout ref"
required: false
type: string
validator_version:
description: "version of renovate-config-validator. By default, the latest version is used."
required: false
type: string
config_file_path:
description: |
Renovate Configuration file
By default, the following files are validated.
* .github/renovate.json
* .github/renovate.json5
* .gitlab/renovate.json
* .gitlab/renovate.json5
* .renovaterc.json
* renovate.json
* renovate.json5
* .renovaterc
required: false
type: string
runs-on:
required: false
type: string
default: '"ubuntu-latest"'
description: |
JSON string for runs-on.
e.g.
runs-on: '"macos-latest"'
runs-on: '["foo"]'
strict:
required: false
type: boolean
default: true
jobs:
renovate-config-validator:
timeout-minutes: 20
runs-on: ${{fromJSON(inputs.runs-on)}}
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: inputs.config_file_path == ''
with:
ref: ${{inputs.ref}}
persist-credentials: false
sparse-checkout: |
.github
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: inputs.config_file_path != ''
with:
ref: ${{inputs.ref}}
persist-credentials: false
sparse-checkout: ${{inputs.config_file_path}}
sparse-checkout-cone-mode: false
- uses: $/.
with:
validator_version: ${{inputs.validator_version}}
config_file_path: ${{inputs.config_file_path}}
strict: ${{inputs.strict}}