fix: actually include new vm admin token #650
Workflow file for this run
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: | |
paths: ["kubernetes/**", "templates/kubernetes/**"] | |
jobs: | |
flux-diff: | |
name: Flux Diff | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: 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@bfff4ac1f313c2ef82aed95a8dd5241c0ee0def6 # 6.0.2 | |
id: diff | |
with: | |
path: "./kubernetes" | |
live-branch: "${{ github.event.pull_request.base.ref }}" | |
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 }} | |
``` |