Automates release version bumps and generated examples with Mergify #2
Workflow file for this run
This file contains hidden or 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: PR generation check | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
permissions: | |
contents: read | |
jobs: | |
regen-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
create-kind-cluster: "false" | |
helm-version: "v3.14.4" | |
- name: Generate examples | |
run: make generate-examples | |
- name: Check diff | |
run: | | |
git config --global --add safe.directory $GITHUB_WORKSPACE | |
if ! git diff --quiet; then | |
echo "Generated outputs differ from committed files. Run 'make generate-examples' locally or rely on merge queue autogen." >&2 | |
git status | |
git --no-pager diff --name-only | |
exit 1 | |
fi | |