Skip to content

Commit

Permalink
ci(auto-build-deps): fixed for body text (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim authored Feb 11, 2024
1 parent 585a627 commit 8c9bfe7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/auto-build-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
branch="auto_build_and_bump"
message="build(deps): bump all dependencies and devDependencies version"
body=$(printf "## Changes File\n\n\`\`\`diff\n$(git diff)\n\`\`\`\n\n> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>")
if (( ${#body} <= 65530 )); then
body="⚠️ The text diff is too longer, [view changes](https://github.com/BarudakRosul/internet-available/pull/${{ github.event.number }}/files)."
fi
if [[ "$(git status --porcelain)" != "" ]]; then
git branch -D ${branch} || true
git checkout -b ${branch}
Expand Down

0 comments on commit 8c9bfe7

Please sign in to comment.