This is a composite action to show the diff of kustomize build
between head and base ref of a pull request.
It depends on https://github.com/int128/diff-action.
Here is an example for a project of kubebuilder.
name: manifest
on:
pull_request:
branches: [master]
paths:
- config/**
- .github/workflows/manifest.yaml
jobs:
diff:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: int128/kustomize-action/diff@v1
with:
write-individual-files: true
kustomization: |
config/default/kustomization.yaml
- It runs kustomize build against the head branch.
- It runs kustomize build against the base branch. It ignores any kustomize errors on the base branch.
- It shows the diff between head and base branch.