Skip to content

Commit 15118c3

Browse files
authored
ci: update action to only commit on git diff (#103)
1 parent def9cd2 commit 15118c3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/registry.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ jobs:
3131
- run: yarn start
3232

3333
- name: Commit and Push Changes
34-
run: |
34+
run: >-
3535
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3636
git config --local user.name "github-actions[bot]"
37-
git add ./docs/registry.json
38-
git commit -m "update registry"
39-
git push origin main
37+
if [[ `git status --porcelain` ]]; then
38+
git add ./docs/registry.json
39+
git commit -m "chore: update registry"
40+
git push origin main
41+
fi

0 commit comments

Comments
 (0)