Skip to content

Commit 90c76f5

Browse files
committed
only commit if there is a change to at least one of the license files
1 parent 6bb8099 commit 90c76f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/fetch-licenses.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
cp spdx-license-list-data/json/licenses.json cmd/licenses.json
2828
cp spdx-license-list-data/json/exceptions.json cmd/exceptions.json
2929
30+
- name: Check for changes
31+
run: |
32+
git diff --exit-code -- cmd/licenses.json cmd/exceptions.json || exit 0
33+
3034
- name: Commit and push
3135
run: |
3236
git config --local user.email "[email protected]"

0 commit comments

Comments
 (0)