Update allenporter/flux-local action to v7 #2362
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 Diff | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**.yaml" | |
jobs: | |
diffs: | |
name: Compute diffs | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cluster_path: | |
- kubernetes/clusters/prod | |
resource: | |
- helmrelease | |
- kustomization | |
steps: | |
- name: Setup Flux CLI | |
uses: fluxcd/flux2/action@v2.4.0 | |
- name: flux-local diff | |
uses: allenporter/flux-local/action/diff@7.0.0 | |
id: diff | |
with: | |
path: ${{ matrix.cluster_path }} | |
resource: ${{ matrix.resource }} | |
- name: PR Comments | |
uses: mshick/add-pr-comment@v2 | |
if: ${{ steps.diff.outputs.diff != '' }} | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
message-id: ${{ github.event.pull_request.number }}/${{ matrix.cluster_path }}/${{ matrix.resource }} | |
message-failure: Unable to post diff | |
message: | | |
```diff | |
${{ steps.diff.outputs.diff }} | |
``` |