only create pull request if something has changed

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-15 21:34:41 +01:00
parent 818882be5d
commit 6771d0553d
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -51,6 +51,7 @@ jobs:
body="${body//$'\r'/'%0D'}" body="${body//$'\r'/'%0D'}"
echo ::set-output name=body::$body echo ::set-output name=body::$body
- uses: peter-evans/create-pull-request@v4 - uses: peter-evans/create-pull-request@v4
if: steps.update-step.outputs.body != ''
with: with:
token: ${{ secrets.PUBLISH_TOKEN }} token: ${{ secrets.PUBLISH_TOKEN }}
body: ${{ steps.update-step.outputs.body }} body: ${{ steps.update-step.outputs.body }}
@ -65,3 +66,4 @@ jobs:
automated automated
assignees: darkkirb assignees: darkkirb
reviewers: darkkirb reviewers: darkkirb
add-paths: flake.lock