Skip to content

Commit 6ac2d6c

Browse files
committed
SPDX licenses bump automation
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1f7caf6 commit 6ac2d6c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/update_spdx_licenses.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
pull-requests: write # create pullrequests
6969
env:
7070
SB_VERSION: ${{ needs.update.outputs.version }}
71-
SB_BRANCH: spdx-schema-bump/${{ github.ref_name }}_${{ needs.update.outputs.version }}
71+
SB_BRANCH: ${{ github.ref_name }}_update-spdx/${{ needs.update.outputs.version }}
7272
steps:
7373
- name: Checkout
7474
# see https://github.com/actions/checkout
@@ -95,19 +95,19 @@ jobs:
9595
echo "existed=false" >> $GITHUB_OUTPUT
9696
git checkout -b "$SB_BRANCH"
9797
fi
98-
- name: configure git author
99-
run: |
100-
git config user.name "spdx-license-bumber[bot]"
101-
git config user.email "spdx-license-bumber[bot]@users.noreply.github.com"
102-
- name: commit and push changes
98+
- name: commit and push
10399
run: |
104100
set -eux
105-
if git commit -sam "feat: bump SPDX licenses $SB_VERSION"
106-
then
107-
git push origin "$SB_BRANCH"
108-
else
109-
echo "$SB_BRANCH was up-to-date"
110-
fi
101+
git add -A schema
102+
git config user.name "spdx-license-bumber[bot]"
103+
git config user.email "[email protected]"
104+
if git commit -s m "feat: bump SPDX licenses $SB_VERSION" || echo "was up to date"
105+
git push origin "$SB_BRANCH"
111106
- name: pullrequest
112107
if: ${{ steps.branch.outputs.existed == 'false' }}
113-
run: gh pr create --base "$GITHUB_REF_NAME" --head "$SB_BRANCH" --fill
108+
run: >
109+
gh pr create
110+
--fill-verbose
111+
--label "feat: bump SPDX Licenses $SB_VERSION"
112+
--base "$GITHUB_REF_NAME"
113+
--head "$SB_BRANCH"

0 commit comments

Comments
 (0)