Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ runs:
then
BRANCH_NAME="update/poetry-update"
BRANCH_TITLE="Update poetry dependencies"
COMMIT_MESSAGE="Chore(deps): Upgrading poetry dependencies"
COMMIT_MESSAGE="chore(deps): Updating poetry dependencies"
COMMIT_DESCRIPTION=$(echo ${{ env.UPDATE_MESSAGE }} | sed -n '/Package operations/,/Writing lock file/p' | sed '/Writing lock file/d' )
else
# replace " " and "_" with dashes
BRANCH_NAME=$(echo ${{ inputs.directory }} | sed -r "s/[_ ]/-/g" | sed -r "s/\//--/g")
Expand All @@ -120,7 +121,8 @@ runs:
# or if two projects share the same name up to substitutions of "-" with " ".
BRANCH_NAME="update/poetry-update-$BRANCH_NAME"
BRANCH_TITLE="Update poetry dependencies for ${{ inputs.directory }}"
COMMIT_MESSAGE="Chore(deps): Upgrading poetry dependencies for ${{ inputs.directory }}"
COMMIT_MESSAGE="chore(deps): Updating poetry dependencies for ${{ inputs.directory }}"
COMMIT_DESCRIPTION=$(echo ${{ env.UPDATE_MESSAGE }} | sed -n '/Package operations/,/Writing lock file/p' | sed '/Writing lock file/d' )
fi
{
echo "BRANCH_NAME<<EOF"
Expand All @@ -137,6 +139,11 @@ runs:
echo $COMMIT_MESSAGE
echo "EOF"
} >> $GITHUB_ENV
{
echo "COMMIT_DESCRIPTION<<EOF"
echo $COMMIT_DESCRIPTION
echo "EOF"
} >> $GITHUB_ENV


- name: Create Pull Request
Expand All @@ -146,7 +153,10 @@ runs:
token: ${{ github.token }}
branch: ${{ env.BRANCH_NAME }}
title: ${{ env.BRANCH_TITLE }}
commit-message: ${{ env.COMMIT_MESSAGE }}
commit-message: |
${{ env.COMMIT_MESSAGE }}

${{ env.COMMIT_DESCRIPTION }}
body: |
Update `poetry` dependencies to use latest compatible versions.

Expand Down