File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments