summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-18 22:17:36 -0600
committerAiden Cline <[email protected]>2025-12-18 22:17:36 -0600
commit3274a5813e5142c66e769d75159048fb245755a3 (patch)
tree55f93b638551791e9a7e768dc8c78abe3a3a348f
parent382905602c61d86d5cacfa28ed00cb69d0a5d4a6 (diff)
downloadopencode-3274a5813e5142c66e769d75159048fb245755a3.tar.gz
opencode-3274a5813e5142c66e769d75159048fb245755a3.zip
ci: only run generate for dev
-rw-r--r--.github/workflows/generate.yml32
1 files changed, 15 insertions, 17 deletions
diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml
index f9713a198..29cc98953 100644
--- a/.github/workflows/generate.yml
+++ b/.github/workflows/generate.yml
@@ -2,11 +2,8 @@ name: generate
on:
push:
- branches-ignore:
- - production
- pull_request:
- branches-ignore:
- - production
+ branches:
+ - dev
workflow_dispatch:
jobs:
@@ -39,15 +36,16 @@ jobs:
git config --local user.name "GitHub Action"
git add -A
git commit -m "chore: generate"
- 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
+ git 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