chore: add missing 'make generate' in examples/ folder #1
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
on: | ||
workflow_call: | ||
inputs: | ||
modulepath: | ||
required: true | ||
type: string | ||
go-version: | ||
required: true | ||
type: string | ||
jobs: | ||
generated: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ inputs.go-version }} | ||
- name: Check generated files are up to date | ||
working-directory: ${{ inputs.modulepath }} | ||
run: | | ||
if make -qp | grep -q '^generate:'; then | ||
make generate | ||
<<<<<<< Updated upstream | ||
if [ "$(git status -s)" != "" ]; then | ||
echo "command 'make generate' creates file that differ from git tree, please run 'make generate' and commit:" | ||
git status -s | ||
exit 1 | ||
======= | ||
if [ "$(git status -s)" != "" ]; then | ||
echo "command 'make generate' creates files that differ from the git tree, please run 'make generate' and commit:" | ||
git status -s | ||
exit 1 | ||
fi | ||
else | ||
echo "'make generate' rule not found, skipping." | ||
>>>>>>> Stashed changes | ||
fi |