Skip to content

Commit 2896e13

Browse files
Improve uv bump PR's description details
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
1 parent 407ff6c commit 2896e13

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/bump_uv_lock.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
t['tool']['uv']['override-dependencies'] = ['torch; sys_platform == \"never\"']
3131
toml.dump(t, open('pyproject.toml', 'w'))
3232
"
33-
- run: uv lock --upgrade
33+
- name: Run uv lock upgrade
34+
run: |
35+
set -o pipefail
36+
uv lock --upgrade 2>&1 | tee /tmp/uv_lock_output.txt
3437
- name: Check for changes
3538
id: changes
3639
run: |
@@ -53,12 +56,22 @@ jobs:
5356
git config user.email "github-actions[bot]@users.noreply.github.com"
5457
git commit -s -m "[chore]: bump uv.lock"
5558
git push origin "$BRANCH"
59+
UV_OUTPUT=$(cat /tmp/uv_lock_output.txt)
5660
gh pr create \
5761
--title "[chore]: weekly bump of uv.lock on ${BASE} ($(date +%Y-%m-%d))" \
58-
--body "$(cat <<'EOF'
62+
--body "$(cat <<EOF
5963
## Summary
6064
Automated weekly update of uv.lock file for nSpect Scanning:
61-
- `uv.lock` — upgraded all transitive dependencies to latest compatible versions
65+
- \`uv.lock\` — upgraded all transitive dependencies to latest compatible versions
66+
67+
<details>
68+
<summary>uv lock --upgrade output</summary>
69+
70+
\`\`\`
71+
${UV_OUTPUT}
72+
\`\`\`
73+
74+
</details>
6275
EOF
6376
)" \
6477
--base "$BASE"

0 commit comments

Comments
 (0)