@@ -49,29 +49,27 @@ runs:
4949 echo "changed=false" >> $GITHUB_OUTPUT
5050 fi
5151
52- - name : " Commit changes"
53- if : steps.detect-changes.outputs.changed == 'true' && inputs.sign-off-commit == 'true'
54- uses : EndBug/add-and-commit@v9
55- with :
56- commit : --signoff
57- message : ${{ inputs.commit-message }}
58- new_branch : dep/update-pdm-lock
59- push : origin dep/update-pdm-lock --set-upstream --force
60-
61- - name : " Commit changes"
62- if : steps.detect-changes.outputs.changed == 'true' && inputs.sign-off-commit == 'false'
63- uses : EndBug/add-and-commit@v9
64- with :
65- message : ${{ inputs.commit-message }}
66- new_branch : dep/update-pdm-lock
67- push : origin dep/update-pdm-lock --set-upstream --force
68-
69- - name : " Create PR"
52+ - name : Create Pull Request
7053 if : steps.detect-changes.outputs.changed == 'true'
71- run : gh pr create --title "${{ inputs.pr-title }}" --body "Update pdm.lock" --head dep/update-pdm-lock || true
72- shell : bash
54+ uses : peter-evans/create-pull-request@v5
7355 env :
7456 GITHUB_TOKEN : ${{ inputs.token }}
57+ with :
58+ token : ${{ inputs.token }}
59+ commit-message : ${{ inputs.commit-message }}
60+ signoff : ${{ inputs.sign-off-commit }}
61+ branch : dep/update-pdm-lock
62+ delete-branch : true
63+ title : ${{ inputs.pr-title }}
64+ body : |
65+ Update locked dependencies.
66+
67+ *Auto-generated by [PDM update action][1]*
68+
69+ [1]: https://github.com/pdm-project/update-deps-action
70+ labels : |
71+ automated pr
72+ draft : false
7573
7674branding :
7775 icon : " code"
0 commit comments