diff --git a/.github/bump_deps.sh b/.github/bump_deps.sh index 48d3c58b..54b1b854 100755 --- a/.github/bump_deps.sh +++ b/.github/bump_deps.sh @@ -19,4 +19,6 @@ if [ -z "$CURRENT_COMMIT" ]; then fi echo "Updated $VAR from $CURRENT_COMMIT to ${LAST_COMMIT}." > "${VAR}_message.txt" -echo "https://github.com/$REPO/compare/${CURRENT_COMMIT}..${LAST_COMMIT}" >> "${VAR}_message.txt" \ No newline at end of file +echo "" >> "${VAR}_message.txt" +echo "Diff URL: https://github.com/$REPO/compare/${CURRENT_COMMIT}..${LAST_COMMIT}" >> "${VAR}_message.txt" +echo "${LAST_COMMIT}" >> "${VAR}_commit.txt" \ No newline at end of file diff --git a/.github/workflows/bump_deps.yaml b/.github/workflows/bump_deps.yaml index 0d4c5cd3..a79898b1 100644 --- a/.github/workflows/bump_deps.yaml +++ b/.github/workflows/bump_deps.yaml @@ -48,16 +48,21 @@ jobs: cat "${{ matrix.variable }}_message.txt" echo EOF } >> "$GITHUB_OUTPUT" - rm -rfv ${{ matrix.variable }}_message.txt + { + echo 'commit<> "$GITHUB_OUTPUT" + rm -rfv ${{ matrix.variable }}_commit.txt - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: token: ${{ secrets.UPDATE_BOT_TOKEN }} push-to-fork: ci-forks/LocalAI commit-message: ':arrow_up: Update ${{ matrix.repository }}' - title: 'chore: :arrow_up: Update ${{ matrix.repository }}' + title: 'chore: :arrow_up: Update ${{ matrix.repository }} to ${{ steps.bump.outputs.commit }}' branch: "update/${{ matrix.variable }}" - body: ${{ steps.bump.outputs.message }} + body: ${{ steps.bump.outputs.message }} signoff: true