-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
60 lines (56 loc) · 1.37 KB
/
config.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
---
version: 2.1
executors:
node:
docker:
- image: cimg/node:20.18.1
user: root
commands:
setup_env:
steps:
- checkout
- restore_cache:
keys:
- node-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
- node-v2-{{ .Branch }}-
- node-v2-
- run:
name: Install renovate
command: |
npm install --verbose
- save_cache:
key: node-v2-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths:
- node_modules
jobs:
run-renovate:
executor: node
resource_class: small
parallelism: 5
steps:
- setup_env
- run:
name: Run renovate
command: |
export GPG_KEY=$(echo "${GPG_KEY_BASE64}" | base64 --decode)
[ "${CIRCLE_BRANCH}" != "master" ] || [ "${CIRCLE_PULL_REQUEST##*/}" != "" ] && npm run renovate -- --dry-run || npm run renovate
workflows:
version: 2
run-renovate:
jobs:
- run-renovate:
context:
- aws_svc_renovate
- renovate-bot
run-renovate-on-schedule:
when:
and:
- equal: [scheduled_pipeline, << pipeline.trigger_source >>]
jobs:
- run-renovate:
context:
- aws_svc_renovate
- renovate-bot
filters:
branches:
only: master