Skip to content

Commit

Permalink
only commit if there is a change to at least one of the license files
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed May 13, 2024
1 parent 6bb8099 commit 90c76f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/fetch-licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ jobs:
cp spdx-license-list-data/json/licenses.json cmd/licenses.json
cp spdx-license-list-data/json/exceptions.json cmd/exceptions.json
- name: Check for changes
run: |
git diff --exit-code -- cmd/licenses.json cmd/exceptions.json || exit 0
- name: Commit and push
run: |
git config --local user.email "[email protected]"
Expand Down

0 comments on commit 90c76f5

Please sign in to comment.