name: generateon:push:branches:- devjobs:generate:runs-on: blacksmith-4vcpu-ubuntu-2404permissions:contents: writepull-requests: writesteps:- name: Checkout repositoryuses: actions/checkout@v4- name: Setup Bunuses: ./.github/actions/setup-bun- name: Setup git committerid: committeruses: ./.github/actions/setup-git-committerwith:opencode-app-id: ${{ vars.OPENCODE_APP_ID }}opencode-app-secret: ${{ secrets.OPENCODE_APP_SECRET }}- name: Generaterun: ./script/generate.ts- name: Commit and pushrun: |if [ -z "$(git status --porcelain)" ]; thenecho "No changes to commit"exit 0figit add -Agit commit -m "chore: generate" --allow-emptygit push origin HEAD:${{ github.ref_name }} --no-verify# if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then# echo ""# echo "============================================"# echo "Failed to push generated code."# echo "Please run locally and push:"# echo ""# echo " ./script/generate.ts"# echo " git add -A && git commit -m \"chore: generate\" && git push"# echo ""# echo "============================================"# exit 1# fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。