69 lines (60 loc) · 1.58 KB
/
_check-renovate.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
name: 'Check env/renovate'
on:
push:
branches:
- 'master'
paths:
- 'renovate.json'
- 'renovate-config.json'
- 'env/renovate/**'
- '.github/workflows/_check-renovate.yml'
pull_request:
types:
- opened
- synchronize
paths:
- 'renovate.json'
- 'renovate-config.json'
- 'env/renovate/**'
- '.github/workflows/_check-renovate.yml'
workflow_dispatch:
# schedule:
# - cron: '0 0 * * *'
jobs:
test:
if: github.event_name != 'schedule'
uses: ./.github/workflows/yarn-run.yml
with:
working-directory: 'env/renovate'
script: 'test'
build:
if: github.event_name != 'schedule'
uses: ./.github/workflows/yarn-run.yml
with:
script: 'workspace @slashnephy/renovate-config build'
permissions:
contents: 'read'
lint:
if: github.event_name != 'schedule'
uses: ./.github/workflows/yarn-lint.yml
with:
script: 'workspace @slashnephy/renovate-config lint'
permissions:
contents: 'read'
pull-requests: 'write'
format:
if: github.event_name != 'pull_request' && github.event_name != 'schedule'
uses: ./.github/workflows/yarn-format.yml
with:
script: 'workspace @slashnephy/renovate-config format'
permissions:
contents: 'write'
# update:
# if: github.event_name != 'pull_request'
# uses: ./.github/workflows/yarn-run.yml
# with:
# working-directory: 'env/renovate'
# script: 'start'
# env: GITHUB_TOKEN=${{ secrets.GH_PAT }}
# permissions:
# contents: 'read'