-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.1 KB
/
update-flux.yaml
File metadata and controls
35 lines (32 loc) · 1.1 KB
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
---
name: update-flux
on:
workflow_dispatch:
schedule:
- cron: "34 2 * * *"
permissions:
contents: write
pull-requests: write
jobs:
components:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Flux CLI
uses: fluxcd/flux2/action@4e78a9d7e03d78d765549929af3094f55d74f6e6 # main
- name: Check for updates
id: update
run: |
flux install --components-extra image-reflector-controller,image-automation-controller \
--export > ./cluster/base/flux-system/gotk-components.yaml
VERSION="$(flux -v)"
echo "flux_version=$VERSION" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
with:
branch: update-flux
commit-message: Update to ${{ steps.update.outputs.flux_version }}
title: Update to ${{ steps.update.outputs.flux_version }}
body: |
${{ steps.update.outputs.flux_version }}