-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (41 loc) · 1.28 KB
/
chart-update.yaml
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
---
name: "chart-update"
on:
schedule:
- cron: "0 7 * * 1-5"
workflow_dispatch:
inputs:
update-strategy:
description: "Update strategy to use. Valid values are 'patch', 'minor' or 'major'"
type: choice
options:
- "patch"
- "minor"
- "major"
required: true
excluded-dependencies:
description: "Comma-separated list of dependencies to exclude from the update (i.e. 'dependency1,dependency2,dependency3')"
type: string
required: false
default: ""
dry-run:
description: "Activate dry-run mode"
type: boolean
required: false
default: true
jobs:
chart-update-schedule:
if: ${{ github.event_name == 'schedule' }}
strategy:
matrix:
update-strategy: ["major", "minor"]
uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main
with:
update-strategy: ${{ matrix.update-strategy }}
chart-update-manual:
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: camptocamp/devops-stack/.github/workflows/modules-chart-update.yaml@main
with:
update-strategy: ${{ inputs.update-strategy }}
excluded-dependencies: ${{ inputs.excluded-dependencies }}
dry-run: ${{ inputs.dry-run }}