@@ -226,8 +226,17 @@ tip_triggers: _#bashWorkflow & {
226
226
name: "Rebuild tip.cuelang.org"
227
227
run: "\(_#curl) -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }}"
228
228
}, {
229
+ _#arg: {
230
+ event_type: "Check against ${GITHUB_SHA}"
231
+ client_payload: {
232
+ type: "unity"
233
+ payload: versions: """
234
+ "commit:${GITHUB_SHA}"
235
+ """
236
+ }
237
+ }
229
238
name: "Trigger unity build"
230
- run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Check against ${GITHUB_SHA}\\\", \\\"client_payload\\\": {\\\"type\\\": \\\"unity\\\", \\\"payload\\\": {\\\"versions\\\": \\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches"
239
+ run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-sh/unity/dispatches"
231
240
}]
232
241
}
233
242
}
@@ -237,11 +246,23 @@ new_version_triggers: _#bashWorkflow & {
237
246
jobs: push: {
238
247
"runs-on": _#linuxMachine
239
248
steps: [{
249
+ _#arg: {
250
+ event_type: "Re-test post release of ${GITHUB_REF##refs/tags/}"
251
+ }
240
252
name: "Rebuild tip.cuelang.org"
241
- run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Re-test post release of ${GITHUB_REF##refs/tags/}\\\"}\" https://api.github.com/repos/cue-lang/cuelang.org/dispatches"
253
+ run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-lang/cuelang.org/dispatches"
242
254
}, {
255
+ _#arg: {
256
+ event_type: "Check against CUE ${GITHUB_REF##refs/tags/}"
257
+ client_payload: {
258
+ type: "unity"
259
+ payload: versions: """
260
+ "${GITHUB_REF##refs/tags/}"
261
+ """
262
+ }
263
+ }
243
264
name: "Trigger unity build"
244
- run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\", \\\"client_payload\\\": {\\\"type\\\": \\\"unity\\\", \\\"payload\\\": {\\\"versions\\\": \\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches"
265
+ run: "\(_#curl) -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(strconv.Quote(encjson.Marshal(_#arg))) https://api.github.com/repos/cue-sh/unity/dispatches"
245
266
}]
246
267
}
247
268
}
@@ -1512,8 +1533,17 @@ import "strings"
1512
1533
run: (string){ "curl -f -s -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }}" }
1513
1534
}
1514
1535
1: (#struct){
1536
+ _#arg(:ci): (#struct){
1537
+ event_type: (string){ "Check against ${GITHUB_SHA}" }
1538
+ client_payload: (#struct){
1539
+ type: (string){ "unity" }
1540
+ payload: (#struct){
1541
+ versions: (string){ "\"commit:${GITHUB_SHA}\"" }
1542
+ }
1543
+ }
1544
+ }
1515
1545
name: (string){ "Trigger unity build" }
1516
- run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Check against ${GITHUB_SHA}\\\", \\\"client_payload\\\": {\\\"type\\\": \\\"unity\\\", \\\"payload\\\": {\\\"versions\\\": \\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
1546
+ run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against ${GITHUB_SHA}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
1517
1547
}
1518
1548
}
1519
1549
defaults: (#struct){
@@ -1579,12 +1609,24 @@ import "strings"
1579
1609
"runs-on": (string){ "ubuntu-18.04" }
1580
1610
steps: (#list){
1581
1611
0: (#struct){
1612
+ _#arg(:ci): (#struct){
1613
+ event_type: (string){ "Re-test post release of ${GITHUB_REF##refs/tags/}" }
1614
+ }
1582
1615
name: (string){ "Rebuild tip.cuelang.org" }
1583
- run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Re-test post release of ${GITHUB_REF##refs/tags/}\\\"}\" https://api.github.com/repos/cue-lang/cuelang.org/dispatches" }
1616
+ run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Re-test post release of ${GITHUB_REF##refs/tags/}\\\"}\" https://api.github.com/repos/cue-lang/cuelang.org/dispatches" }
1584
1617
}
1585
1618
1: (#struct){
1619
+ _#arg(:ci): (#struct){
1620
+ event_type: (string){ "Check against CUE ${GITHUB_REF##refs/tags/}" }
1621
+ client_payload: (#struct){
1622
+ type: (string){ "unity" }
1623
+ payload: (#struct){
1624
+ versions: (string){ "\"${GITHUB_REF##refs/tags/}\"" }
1625
+ }
1626
+ }
1627
+ }
1586
1628
name: (string){ "Trigger unity build" }
1587
- run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\", \\\"client_payload\\\": {\\\"type\\\": \\\"unity\\\", \\\"payload\\\": {\\\"versions\\\": \\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
1629
+ run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
1588
1630
}
1589
1631
}
1590
1632
defaults: (#struct){
@@ -2087,8 +2129,17 @@ import "strings"
2087
2129
run: (string){ "curl -f -s -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }}" }
2088
2130
}
2089
2131
1: (#struct){
2132
+ _#arg(:ci): (#struct){
2133
+ event_type: (string){ "Check against ${GITHUB_SHA}" }
2134
+ client_payload: (#struct){
2135
+ type: (string){ "unity" }
2136
+ payload: (#struct){
2137
+ versions: (string){ "\"commit:${GITHUB_SHA}\"" }
2138
+ }
2139
+ }
2140
+ }
2090
2141
name: (string){ "Trigger unity build" }
2091
- run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Check against ${GITHUB_SHA}\\\", \\\"client_payload\\\": {\\\"type\\\": \\\"unity\\\", \\\"payload\\\": {\\\"versions\\\": \\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
2142
+ run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against ${GITHUB_SHA}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"commit:${GITHUB_SHA}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
2092
2143
}
2093
2144
}
2094
2145
defaults: (#struct){
@@ -2151,12 +2202,24 @@ import "strings"
2151
2202
"runs-on": (string){ "ubuntu-18.04" }
2152
2203
steps: (#list){
2153
2204
0: (#struct){
2205
+ _#arg(:ci): (#struct){
2206
+ event_type: (string){ "Re-test post release of ${GITHUB_REF##refs/tags/}" }
2207
+ }
2154
2208
name: (string){ "Rebuild tip.cuelang.org" }
2155
- run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Re-test post release of ${GITHUB_REF##refs/tags/}\\\"}\" https://api.github.com/repos/cue-lang/cuelang.org/dispatches" }
2209
+ run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Re-test post release of ${GITHUB_REF##refs/tags/}\\\"}\" https://api.github.com/repos/cue-lang/cuelang.org/dispatches" }
2156
2210
}
2157
2211
1: (#struct){
2212
+ _#arg(:ci): (#struct){
2213
+ event_type: (string){ "Check against CUE ${GITHUB_REF##refs/tags/}" }
2214
+ client_payload: (#struct){
2215
+ type: (string){ "unity" }
2216
+ payload: (#struct){
2217
+ versions: (string){ "\"${GITHUB_REF##refs/tags/}\"" }
2218
+ }
2219
+ }
2220
+ }
2158
2221
name: (string){ "Trigger unity build" }
2159
- run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\": \\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\", \\\"client_payload\\\": {\\\"type\\\": \\\"unity\\\", \\\"payload\\\": {\\\"versions\\\": \\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
2222
+ run: (string){ "curl -f -s -H \"Content-Type: application/json\" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \"{\\\"event_type\\\":\\\"Check against CUE ${GITHUB_REF##refs/tags/}\\\",\\\"client_payload\\\":{\\\"type\\\":\\\"unity\\\",\\\"payload\\\":{\\\"versions\\\":\\\"\\\\\\\"${GITHUB_REF##refs/tags/}\\\\\\\"\\\"}}}\" https://api.github.com/repos/cue-sh/unity/dispatches" }
2160
2223
}
2161
2224
}
2162
2225
defaults: (#struct){
@@ -2267,7 +2330,7 @@ import "strings"
2267
2330
name: (string){ "Set go build tags" }
2268
2331
run: (_|_){
2269
2332
// [incomplete] _#setGoBuildTags.run: invalid interpolation: non-concrete value string (type string):
2270
- // ./workflows.cue:272 :10
2333
+ // ./workflows.cue:293 :10
2271
2334
}
2272
2335
}
2273
2336
_#installGo(:ci): (#struct){
@@ -2590,8 +2653,17 @@ import "strings"
2590
2653
run: "\(〈4;_#curl〉) -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }}"
2591
2654
},
2592
2655
{
2656
+ _#arg: {
2657
+ event_type: "Check against ${GITHUB_SHA}"
2658
+ client_payload: {
2659
+ type: "unity"
2660
+ payload: {
2661
+ versions: "\"commit:${GITHUB_SHA}\""
2662
+ }
2663
+ }
2664
+ }
2593
2665
name: "Trigger unity build"
2594
- run: "\(〈4;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\": \"Check against ${GITHUB_SHA}\", \"client_payload\": {\"type\": \"unity\", \"payload\": {\"versions\": \"\\\"commit:${GITHUB_SHA}\\\"\"}}}" https://api.github.com/repos/cue-sh/unity/dispatches"
2666
+ run: "\(〈4;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-sh/unity/dispatches"
2595
2667
},
2596
2668
]
2597
2669
}
@@ -2611,12 +2683,24 @@ import "strings"
2611
2683
"runs-on": 〈3;_#linuxMachine〉
2612
2684
steps: [
2613
2685
{
2686
+ _#arg: {
2687
+ event_type: "Re-test post release of ${GITHUB_REF##refs/tags/}"
2688
+ }
2614
2689
name: "Rebuild tip.cuelang.org"
2615
- run: "\(〈4;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\": \"Re-test post release of ${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cue-lang/cuelang.org/dispatches"
2690
+ run: "\(〈4;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-lang/cuelang.org/dispatches"
2616
2691
},
2617
2692
{
2693
+ _#arg: {
2694
+ event_type: "Check against CUE ${GITHUB_REF##refs/tags/}"
2695
+ client_payload: {
2696
+ type: "unity"
2697
+ payload: {
2698
+ versions: "\"${GITHUB_REF##refs/tags/}\""
2699
+ }
2700
+ }
2701
+ }
2618
2702
name: "Trigger unity build"
2619
- run: "\(〈4;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary "{\"event_type\": \"Check against CUE ${GITHUB_REF##refs/tags/}\", \"client_payload\": {\"type\": \"unity\", \"payload\": {\"versions\": \"\\\"${GITHUB_REF##refs/tags/}\\\"\"}}}" https://api.github.com/repos/cue-sh/unity/dispatches"
2703
+ run: "\(〈4;_#curl〉) -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} --request POST --data-binary \(〈import;strconv〉.Quote(〈import;"encoding/json"〉.Marshal(〈0;_#arg〉))) https://api.github.com/repos/cue-sh/unity/dispatches"
2620
2704
},
2621
2705
]
2622
2706
}
0 commit comments