Skip to content

Commit fd42bbd

Browse files
committed
Update ci.yml
1 parent 5559e39 commit fd42bbd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,17 @@ jobs:
4545
run: |
4646
git config --global user.name 'github-actions[bot]'
4747
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
48+
49+
# Stage the changes
4850
git add metadata.json
49-
git commit -m "chore: Add plugin metadata"
50-
git push
51+
52+
# Commit only if there are changes
53+
if git commit -m "chore: Add plugin metadata"; then
54+
# Push only if the commit succeeded
55+
git push
56+
else
57+
echo "::notice::No changes to commit."
58+
fi
5159
5260
make:
5361
needs: prepare

0 commit comments

Comments
 (0)