-
Notifications
You must be signed in to change notification settings - Fork 78
47 lines (42 loc) · 1.47 KB
/
update-ekco.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
name: cron-ekco-update
on:
schedule:
- cron: "0 4 * * 1,2,3,4,5" # “At 04:00 on Monday, Tuesday, Wednesday, Thursday, and Friday.”
workflow_dispatch: {}
jobs:
build-pr-ekco:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create EKCO Update
id: update
working-directory: ./addons/ekco/template
run: |
./generate.sh
- name: Create Pull Request # creates a PR if there are differences
uses: peter-evans/[email protected]
id: cpr
with:
token: ${{ secrets.AUTOMATED_PR_GH_PAT }}
commit-message: Create new EKCO version
title: 'Automated EKCO version update ${{ steps.update.outputs.ekco_version }}'
branch: automation/update-ekco
delete-branch: true
labels: |
automated-pr
ekco
type::chore
kurl::type::feature
draft: false
base: "main"
body: |
Automated changes by the [cron-ekco-update](https://github.com/replicatedhq/kURL/blob/main/.github/workflows/update-ekco.yaml) GitHub action
```release-note
Adds [EKCO add-on](https://kurl.sh/docs/add-ons/ekco) version ${{ steps.update.outputs.ekco_version }}.
```
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"