ci
This commit is contained in:
6
.github/workflows/generate.yml
vendored
6
.github/workflows/generate.yml
vendored
@@ -35,8 +35,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
run: |
|
run: |
|
||||||
|
if [ -z "$(git status --porcelain)" ]; then
|
||||||
|
echo "No changes to commit"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "chore: generate" --allow-empty
|
git commit -m "chore: generate"
|
||||||
git push origin HEAD:${{ github.ref_name }} --no-verify
|
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
|
# if ! git push origin HEAD:${{ github.event.pull_request.head.ref || github.ref_name }} --no-verify; then
|
||||||
# echo ""
|
# echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user