Skip to content

update-flux

update-flux #242

Workflow file for this run

---
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@d9f51d047dbb2e3184539ca40740f7b6f808f8d7 # 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@c0f553fe549906ede9cf27b5156039d195d2ece0 # 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 }}