-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.23 KB
/
update-chart-dependencies.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
47
48
49
name: Check for Chart Dependency Updates
on:
workflow_dispatch: # Enable manual generation
schedule:
- cron: '0 0 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-chart
cancel-in-progress: true
jobs:
check-for-updates:
permissions:
contents: write
pull-requests: write
name: Update Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'scripts/go.mod'
cache-dependency-path: "**/*.sum"
- run: go mod download
working-directory: scripts/
- name: Run Script
working-directory: scripts/
run: go run chart-dep-updater.go ../chart/Chart.yaml
- name: Creating PR
uses: peter-evans/[email protected]
with:
token: ${{ secrets.JETSTACK_CHARTS_PAT }}
title: "Update finops-stack Chart Dependencies"
commit-message: "Update finops-stack Chart Dependencies"
branch: finops-stack/${{ github.job_workflow_sha }}
path: chart
add-paths: chart/
delete-branch: true
signoff: true
base: main
draft: false