Skip to content

Commit 3274a58

Browse files
committed
ci: only run generate for dev
1 parent 3829056 commit 3274a58

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

.github/workflows/generate.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ name: generate
22

33
on:
44
push:
5-
branches-ignore:
6-
- production
7-
pull_request:
8-
branches-ignore:
9-
- production
5+
branches:
6+
- dev
107
workflow_dispatch:
118

129
jobs:
@@ -39,15 +36,16 @@ jobs:
3936
git config --local user.name "GitHub Action"
4037
git add -A
4138
git commit -m "chore: generate"
42-
if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then
43-
echo ""
44-
echo "============================================"
45-
echo "Failed to push generated code."
46-
echo "Please run locally and push:"
47-
echo ""
48-
echo " ./script/generate.ts"
49-
echo " git add -A && git commit -m \"chore: generate\" && git push"
50-
echo ""
51-
echo "============================================"
52-
exit 1
53-
fi
39+
git push origin HEAD:${{ github.ref_name }} --no-verify
40+
# if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then
41+
# echo ""
42+
# echo "============================================"
43+
# echo "Failed to push generated code."
44+
# echo "Please run locally and push:"
45+
# echo ""
46+
# echo " ./script/generate.ts"
47+
# echo " git add -A && git commit -m \"chore: generate\" && git push"
48+
# echo ""
49+
# echo "============================================"
50+
# exit 1
51+
# fi

0 commit comments

Comments
 (0)