Skip to content

Commit b5fe42f

Browse files
committed
ci: optimize commit step in template generation workflow
1 parent e627c4a commit b5fe42f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/generate-template.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ jobs:
7373
- name: Commit and push changes
7474
id: commit
7575
run: |
76-
git fetch origin main
77-
git add -A
78-
echo "=== Git status ==="
79-
git status
80-
echo "=== Differences vs main ==="
81-
if git diff --quiet origin/main; then
76+
git add .
77+
if git diff --cached --quiet; then
8278
echo "no_changes=true" >> $GITHUB_OUTPUT
8379
echo "✅ No changes detected."
8480
else

0 commit comments

Comments
 (0)