Skip to content

Commit

Permalink
Update bench-all-runtimes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jan 19, 2025
1 parent 0181c3b commit 2353850
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/bench-all-runtimes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
git add .
git commit -m "Update all weights weekly for $DATE"
git push --set-upstream origin "$BRANCH"
SUBWEIGHT_OUTPUT_RAW=$(subweight compare commits \
--path-pattern "./**/weights/**/*.rs,./**/weights.rs" \
Expand All @@ -150,9 +151,18 @@ jobs:
--ignore-errors \
origin/master HEAD)
SUBWEIGHT_OUTPUT='Auto-update weights for $DATE\n\n<details>\n<summary>Weight Changes Analysis</summary>\n\n$SUBWEIGHT_OUTPUT_RAW\n\n</details>'
git push --set-upstream origin "$BRANCH"
# Properly escape the markdown content and format the PR body
SUBWEIGHT_OUTPUT=$(cat << EOF
Auto-update weights for $DATE
<details>
<summary>Subweight Output</summary>
$SUBWEIGHT_OUTPUT_RAW
</details>
EOF
)
PR_TITLE="Auto-update weights for $DATE"
Expand All @@ -161,4 +171,5 @@ jobs:
--head "$BRANCH" \
--base "master" \
--label "R0-silent" \
--draft \
--body '$SUBWEIGHT_OUTPUT'

0 comments on commit 2353850

Please sign in to comment.