Skip to content

Commit d283484

Browse files
authored
Merge pull request #4567 from djspiewak/build/fix-scastie-changes
Updated site script for scastie API changes
2 parents dcfb802 + 00375f5 commit d283484

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

scripts/make-site-pr.sh

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,24 @@ scastie_sbt_string="$(echo "$scastie_sbt_full" | jq -R -s '.')"
3838
post_file="$(mktemp)"
3939
cat > "$post_file" << JSON
4040
{
41-
"_isWorksheetMode": false,
42-
"code": $scastie_scala_string,
43-
"isShowingInUserProfile": false,
44-
"libraries": [],
45-
"librariesFromList": [],
46-
"sbtConfigExtra": $scastie_sbt_string,
47-
"sbtPluginsConfigExtra": "",
48-
"target": {
49-
"scalaVersion": "2.13.10",
50-
"tpe": "Jvm"
41+
"SbtInputs": {
42+
"isWorksheetMode": false,
43+
"code": $scastie_scala_string,
44+
"isShowingInUserProfile": false,
45+
"libraries": [],
46+
"librariesFromList": [],
47+
"sbtConfigExtra": $scastie_sbt_string,
48+
"sbtPluginsConfigExtra": "",
49+
"target": {
50+
"Scala3": {
51+
"scalaVersion": "3.3.7"
52+
}
53+
}
5154
}
5255
}
5356
JSON
5457

55-
# echo "$post_body" | jq
58+
# cat "$post_file" | jq
5659

5760
uuid=$(curl \
5861
-X POST \

0 commit comments

Comments
 (0)