Compare commits
1 commit
c17d7c4c36
...
7c70c50922
Author | SHA1 | Date | |
---|---|---|---|
7c70c50922 |
1 changed files with 7 additions and 10 deletions
|
@ -25,22 +25,19 @@ if [ "$CI" = "true" ]; then
|
|||
echo "Retrieved index: $pr_number"
|
||||
echo "Expected PR URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pulls/$pr_number"
|
||||
|
||||
comment=$(
|
||||
echo "Logging in to $GITHUB_SERVER_URL with default token"
|
||||
tea login add --url "$GITHUB_SERVER_URL" --token "$GITHUB_TOKEN"
|
||||
tea comment "$pr_number" "$(
|
||||
cat <<-EOF
|
||||
### NixOS Configurations sizes
|
||||
|
||||
|
||||
TODO
|
||||
|
||||
|
||||
### Package sizes
|
||||
|
||||
|
||||
$(package_size_table)
|
||||
EOF
|
||||
)
|
||||
echo "Posting comment: $comment"
|
||||
curl -X 'POST' \
|
||||
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/issues/$pr_number/comments?token=$GITHUB_TOKEN" \
|
||||
-H 'accept: application/json' \
|
||||
-d "$(echo '{}' | jq --arg comment "$comment" '.body=$comment')"
|
||||
)"
|
||||
else
|
||||
package_size_table
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue