Skip to content

🎨 Renovate: Update Helm release kite to v0.7.4 #168

🎨 Renovate: Update Helm release kite to v0.7.4

🎨 Renovate: Update Helm release kite to v0.7.4 #168

Workflow file for this run

name: flux-local diff
permissions:
contents: read
on:
push:
branches-ignore: ["main"]
jobs:
diff:
name: flux diff
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout main
uses: actions/checkout@v6
with:
ref: "${{ github.event.repository.default_branch }}"
path: main
token: ${{ secrets.GIT_TOKEN }}
- name: Checkout PR
uses: actions/checkout@v6
with:
path: pr
token: ${{ secrets.GIT_TOKEN }}
- name: Run flux-local ks diff
uses: docker://ghcr.io/allenporter/flux-local:v8
with:
args: >-
diff ks
--path /github/workspace/pr/k8s/flux
--path-orig /github/workspace/main/k8s/flux
--all-namespaces
--output-file ks.diff
- name: Run flux-local hr diff
uses: docker://ghcr.io/allenporter/flux-local:v8
with:
args: >-
diff hr
--path /github/workspace/pr/k8s/flux
--path-orig /github/workspace/main/k8s/flux
--api-versions monitoring.coreos.com/v1
--all-namespaces
--output-file hr.diff
- name: diff
id: diff
run: |
# merge the 2 diff files
cat hr.diff >> ks.diff
# Message formatting based on diff
{
echo "diff<<EOF"
if [[ -s "ks.diff" ]]; then
echo "Here is the diff to main:"
echo "\`\`\`diff"
cat ks.diff
echo "\`\`\`"
else
echo "No diff to main detected."
fi
echo "EOF"
} >> "$GITHUB_OUTPUT"
- name: Add Comment
uses: mshick/add-pr-comment@v2
with:
message: |
${{ steps.diff.outputs.diff }}