Flux Auto Update #8564
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flux Auto Update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 * * * *" | |
jobs: | |
components: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Flux CLI | |
uses: fluxcd/flux2/action@main | |
- name: Check for updates | |
id: update | |
run: | | |
flux install \ | |
--export > ./base/flux-system/gotk-components.yaml | |
VERSION="$(flux -v)" | |
echo "::set-output name=flux_version::$VERSION" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: update-flux | |
commit-message: Update Flux to ${{ steps.update.outputs.flux_version }} | |
title: Update Flux to ${{ steps.update.outputs.flux_version }} | |
body: | | |
${{ steps.update.outputs.flux_version }} |