Skip to content

feat(container)!: Update image ghcr.io/prometheus-community/charts/kube-prometheus-stack (89.1.0 βž” 90.0.0) #408

feat(container)!: Update image ghcr.io/prometheus-community/charts/kube-prometheus-stack (89.1.0 βž” 90.0.0)

feat(container)!: Update image ghcr.io/prometheus-community/charts/kube-prometheus-stack (89.1.0 βž” 90.0.0) #408

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Flate
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
filter:
name: Flate - Filter
runs-on: ubuntu-latest
outputs:
changed-files: ${{ steps.changed-files.outputs.changed_files }}
steps:
- name: Get Changed Files
id: changed-files
uses: bjw-s-labs/action-changed-files@a9a36fb08ce06db9b02fbd8026cc2c0945eb9841 # v0.6.0
with:
patterns: kubernetes/**/*
flate:
if: ${{ needs.filter.outputs.changed-files != '[]' }}
needs: filter
name: Flate
runs-on: ubuntu-latest
strategy:
matrix:
resource:
- helmrelease
- kustomization
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Mise
uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0
with:
cache: false
tool_versions: |
github:home-operations/flate latest
- name: Run Flate
id: flate
env:
FLATE_OUTPUT: github
FLATE_PATH: ./kubernetes/flux/cluster
KIND: ${{ matrix.resource }}
run: |-
echo 'diff<<EOF' >> $GITHUB_OUTPUT
flate diff $KIND >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- if: ${{ steps.flate.outputs.diff != '' }}
name: Generate Token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
id: app-token
with:
client-id: ${{ secrets.BOT_APP_CLIENT_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
permission-pull-requests: write
- if: ${{ steps.flate.outputs.diff != '' }}
name: Add Comment
uses: mshick/add-pr-comment@ec328af66588ab8f77cdeb2c264f14aba45bbf59 # v3.12.0
with:
repo-token: ${{ steps.app-token.outputs.token }}
message-id: ${{ github.event.pull_request.number }}/kubernetes/${{ matrix.resource }}
message: |-
```diff
${{ steps.flate.outputs.diff }}
```
success:
if: ${{ !cancelled() }}
needs: flate
name: Flate - Success
runs-on: ubuntu-latest
steps:
- name: Any jobs failed?
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- name: All jobs passed or skipped?
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: echo "All jobs passed or skipped" && echo "${{ toJSON(needs.*.result) }}"