diff --git a/.github/workflows/update_dependencies.yml b/.github/workflows/update_dependencies.yml index 860d035b..becf71e5 100644 --- a/.github/workflows/update_dependencies.yml +++ b/.github/workflows/update_dependencies.yml @@ -26,13 +26,18 @@ jobs: - name: "Update poetry lock file" id: update run: | + poetry run poetry self update poetry run poetry update + status=$(git status | grep poetry.lock) + echo "status=$status" >> $GITHUB_OUTPUT # create pull request if necessary - name: "Create Pull Request" uses: peter-evans/create-pull-request@v5 + if: ${{ steps.update.outputs.status != '' }} with: commit-message: Update dependencies title: "Update dependencies" body: | - Dependency updates + ${{ steps.update.outputs.update_output }}