From b3f362f22901721e03fad0f3495bd1afd9aca7b6 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 6 Aug 2024 09:16:17 +0200 Subject: [PATCH] ci: small fixes Signed-off-by: Ettore Di Giacinto --- .github/bump_deps.sh | 4 ++-- .github/workflows/bump_deps.yaml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/bump_deps.sh b/.github/bump_deps.sh index 54b1b854..6ecb81a9 100755 --- a/.github/bump_deps.sh +++ b/.github/bump_deps.sh @@ -18,7 +18,7 @@ if [ -z "$CURRENT_COMMIT" ]; then exit 0 fi -echo "Updated $VAR from $CURRENT_COMMIT to ${LAST_COMMIT}." > "${VAR}_message.txt" +echo "Updated `$VAR` from `$CURRENT_COMMIT` to `${LAST_COMMIT}`." > "${VAR}_message.txt" echo "" >> "${VAR}_message.txt" -echo "Diff URL: https://github.com/$REPO/compare/${CURRENT_COMMIT}..${LAST_COMMIT}" >> "${VAR}_message.txt" +echo "Changes: 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 a79898b1..68cb81cb 100644 --- a/.github/workflows/bump_deps.yaml +++ b/.github/workflows/bump_deps.yaml @@ -53,6 +53,7 @@ jobs: cat "${{ matrix.variable }}_commit.txt" echo EOF } >> "$GITHUB_OUTPUT" + rm -rfv ${{ matrix.variable }}_message.txt rm -rfv ${{ matrix.variable }}_commit.txt - name: Create Pull Request uses: peter-evans/create-pull-request@v6 @@ -60,7 +61,7 @@ jobs: 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 }} to ${{ steps.bump.outputs.commit }}' + title: 'chore: :arrow_up: Update ${{ matrix.repository }} to `${{ steps.bump.outputs.commit }}`' branch: "update/${{ matrix.variable }}" body: ${{ steps.bump.outputs.message }} signoff: true