-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (56 loc) · 2.44 KB
/
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
50
51
52
53
54
55
56
57
name: Makefile Dependencies
on:
schedule:
# everyday at midnight.
- cron: '0 0 * * *'
workflow_dispatch: {}
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: AdminConsole
run: |
export VERSION=`curl https://api.github.com/repos/replicatedhq/kots-helm/tags | jq -r .[].name | grep -v alpha | head -1 | tr -d v`
sed -i "/^ADMIN_CONSOLE_CHART_VERSION/c\ADMIN_CONSOLE_CHART_VERSION = $VERSION" Makefile
- name: Embedded Cluster Operator
run: |
export VERSION=`curl https://api.github.com/repos/replicatedhq/embedded-cluster-operator/tags | jq -r .[].name | head -1 | tr -d v`
sed -i "/^EMBEDDED_OPERATOR_CHART_VERSION/c\EMBEDDED_OPERATOR_CHART_VERSION = $VERSION" Makefile
- name: OpenEBS
run: |
export VERSION=`curl https://api.github.com/repos/openebs/charts/releases/latest | jq -r .name | tr -d openebs-`
sed -i "/^OPENEBS_CHART_VERSION/c\OPENEBS_CHART_VERSION = $VERSION" Makefile
- name: Kubectl
run: |
export VERSION=`curl -L -s https://dl.k8s.io/release/stable.txt`
sed -i "/^KUBECTL_VERSION/c\KUBECTL_VERSION = $VERSION" Makefile
- name: K0sctl
run: |
export VERSION=`curl https://api.github.com/repos/k0sproject/k0sctl/releases/latest | jq -r .name`
sed -i "/^K0SCTL_VERSION/c\K0SCTL_VERSION = $VERSION" Makefile
- name: K0s
run: |
export VERSION=`curl https://api.github.com/repos/k0sproject/k0s/releases/latest | jq -r .name`
sed -i "/^K0S_VERSION/c\K0S_VERSION = $VERSION" Makefile
- name: Troubleshoot
run: |
export VERSION=`curl https://api.github.com/repos/replicatedhq/troubleshoot/releases/latest | jq -r .name`
sed -i "/^TROUBLESHOOT_VERSION/c\TROUBLESHOOT_VERSION = $VERSION" Makefile
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.AUTOMATED_PR_GH_PAT }}
commit-message: Update Makefile versions
title: 'Update Makefile versions'
branch: automation/update-makefile
delete-branch: true
labels: |
automated-pr
makefile
type::chore
draft: false
base: "main"
body: |
Automated changes by the [cron-makefile-dependencies](https://github.com/replicatedhq/embedded-cluster/blob/main/.github/workflows/dependencies.yaml) GitHub action