Skip to content

chore(deps): update mshick/add-pr-comment action to v2.8.2 #14

chore(deps): update mshick/add-pr-comment action to v2.8.2

chore(deps): update mshick/add-pr-comment action to v2.8.2 #14

Workflow file for this run

---
name: "Flux Diff"
on:
pull_request:
branches: ["main"]
jobs:
flux-diff:
name: Flux Diff
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
strategy:
matrix:
resource: ["helmrelease", "kustomization"]
steps:
- name: Setup Flux CLI
uses: fluxcd/flux2/action@main
- name: Diff Resources
uses: allenporter/flux-local/action/diff@e630daec1a1bcd24dc80f5100c6e1c7b6a091153 # 4.3.1
id: diff
with:
path: "./kubernetes"
resource: "${{ matrix.resource }}"
skip-crds: "false"
- if: ${{ steps.diff.outputs.diff != '' }}
name: Add comment
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2
with:
message-id: "${{ github.event.pull_request.number }}/${{ matrix.path }}/${{ matrix.resource }}"
message-failure: Diff was not successful
message: |
```diff
${{ steps.diff.outputs.diff }}
```