-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.06 KB
/
update.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
name: Update Component Descriptors
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v4
with:
go-version-file: ocm-updater/go.mod
cache-dependency-path: ocm-updater/go.sum
- name: Check for updates
id: update
run: |
cd ocm-updater
go run . ../components/...
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
author: Gardener on Metal Robot <[email protected]>
committer: Gardener on Metal Robot <[email protected]>
labels: lifecycle/ocm
delete-branch: true
token: ${{ secrets.GITHUB_TOKEN }}
branch: ocm/update
base: main
commit-message: Update component descriptors
title: Update component descriptors
body: |
Update component descriptors