Skip to content

Commit df0cff6

Browse files
committed
ci
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 57a00bc commit df0cff6

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/update_spdx_licenses.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,15 @@ jobs:
100100
- name: commit and push
101101
run: |
102102
set -eux
103-
git add -A schema
104-
git config user.name "spdx-license-bumber[bot]"
105-
git config user.email "[email protected]"
106-
if git commit -s m "feat: bump SPDX licenses $SB_VERSION" || echo "was up to date"
107-
git push origin "$SB_BRANCH"
103+
104+
git config user.name 'spdx-license-bumber[bot]'
105+
git config user.email '[email protected]'
106+
if git diff --quiet -- 'schema/spdx.*'
107+
then
108+
git add -A schema
109+
git commit -s m "feat: bump SPDX licenses $SB_VERSION"
110+
git push origin "$SB_BRANCH"
111+
fi
108112
- name: pullrequest
109113
if: ${{ steps.branch.outputs.existed == 'false' }}
110114
run: >

0 commit comments

Comments
 (0)