Skip to content

chore: write contents #6

chore: write contents

chore: write contents #6

Workflow file for this run

name: auto-generate

Check failure on line 1 in .github/workflows/generate.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/generate.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: permissions
on: pull_request
jobs:
permissions:
contents: write
auto-generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: commit and push generated changes
run: |
make generate
if [ -n "$(git status --porcelain)" ]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: auto-generate"
git push origin HEAD:${{ github.head_ref }}
else
echo "no changes to commit and push"
fi