-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (38 loc) · 1.2 KB
/
updatecli.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
---
name: "Updatecli: Dependency Management"
on:
workflow_dispatch:
release:
push:
schedule:
# * is a special character in YAML so you have to quote this string
# Run every hour
- cron: '0 * * * *'
repository_dispatch:
types: [epinio-release, epinio-ui-release]
permissions:
contents: write
pull-requests: write
jobs:
updatecli:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
# Needed due to this bug https://github.com/updatecli/updatecli/issues/1098
# Updatecli which relies on go-git fails when used with git submodule using ssh protocol
# so it's a temporary workaround
- name: Checkout Epinio
uses: actions/checkout@v4
with:
repository: 'epinio/epinio'
path: epinio
fetch-depth: 0
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@v2
- name: Apply
run: "updatecli apply --config ./updatecli/updatecli.d --values ./updatecli/values.yaml --experimental"
env:
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}