Skip to content

chore: add missing 'make generate' in examples/ folder #1

chore: add missing 'make generate' in examples/ folder

chore: add missing 'make generate' in examples/ folder #1

Workflow file for this run

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

Check failure on line 29 in .github/workflows/build_template.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_template.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
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