Skip to content

Commit

Permalink
add cosmetic updates, and try better conditional check
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Oct 25, 2023
1 parent ae4cb2e commit 1ce3af9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/update_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,23 @@ jobs:
id: update
run: |
poetry run poetry self update
UPDATE_OUTPUT=$(poetry run poetry update)
status=$(git status | grep poetry.lock)
echo "status=$status" >> $GITHUB_OUTPUT
exec 5>&1
UPDATE_OUTPUT=$(poetry run poetry update|tee >(cat - >&5))
echo "UPDATE_OUTPUT<<EOF" >> $GITHUB_OUTPUT
echo "$UPDATE_OUTPUT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
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 != '' }}
if: ${{ contains(steps.update.outputs.STATUS, 'poetry.lock') }}
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update dependencies
title: "Update dependencies"
body: |
- Dependency updates
- ${{ steps.update.outputs.UPDATE_OUTPUT }}
Dependency updates using Poetry:
${{ steps.update.outputs.UPDATE_OUTPUT }}

0 comments on commit 1ce3af9

Please sign in to comment.