@@ -66,13 +66,13 @@ jobs:
66
66
shell: bash
67
67
steps:
68
68
- name: Rebuild tip.cuelang.org
69
- run: 'curl -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
70
- }} --request POST --data-binary "{"event_type": "Re-test post release of ${GITHUB_REF##refs/tags/}"}"
71
- https://api.github.com/repos/cuelang/cuelang.org/dispatches'
69
+ run: 'curl -f - s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
70
+ }} --request POST --data-binary "{\ "event_type\ ": \ "Re-test post release of
71
+ ${GITHUB_REF##refs/tags/}\"}" https://api.github.com/repos/cuelang/cuelang.org/dispatches'
72
72
- name: Trigger unity build
73
- run: 'curl -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
74
- }} --request POST --data-binary "{"event_type": "Check against CUE ${GITHUB_REF##refs/tags/}",
75
- "client_payload": {"type": "unity", "payload": {"versions": "\ "${GITHUB_REF##refs/tags/}\"}}}"
73
+ run: 'curl -f - s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
74
+ }} --request POST --data-binary "{\ "event_type\ ": \ "Check against CUE ${GITHUB_REF##refs/tags/}\ ",
75
+ \ "client_payload\ ": {\ "type\ ": \ "unity\ ", \ "payload\ ": {\ "versions\ ": \"\\\ "${GITHUB_REF##refs/tags/}\\ \"}}}"
76
76
https://api.github.com/repos/cue-sh/unity/dispatches'
77
77
-- .github/workflows/release.yml.golden --
78
78
# Generated by internal/ci/ci_tool.cue; do not edit
@@ -231,7 +231,7 @@ jobs:
231
231
run: echo "${{ secrets.gerritCookie }}" > ~/.gitcookies
232
232
- if: ${{ startsWith(github.ref, 'refs/heads/ci/') }}
233
233
name: Update Gerrit CL message with starting message
234
- run: 'curl -s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Started
234
+ run: 'curl -f - s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Started
235
235
the build... see progress at ${{ github.event.repository.html_url }}/actions/runs/${{
236
236
github.run_id }}"}'' -b ~/.gitcookies https://cue-review.googlesource.com/a/changes/$(basename
237
237
$(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review'
@@ -294,7 +294,7 @@ jobs:
294
294
GOPROXY=https://proxy.golang.org go get -d cuelang.org/go/cmd/cue@$v
295
295
- if: ${{ startsWith(github.ref, 'refs/heads/ci/') && failure() }}
296
296
name: Post any failures for this matrix entry
297
- run: 'curl -s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Build
297
+ run: 'curl -f - s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Build
298
298
failed for ${{ runner.os }}-${{ matrix.go-version }}; see ${{ github.event.repository.html_url
299
299
}}/actions/runs/${{ github.run_id }} for more details","labels":{"Code-Review":-1}}''
300
300
-b ~/.gitcookies https://cue-review.googlesource.com/a/changes/$(basename
@@ -310,7 +310,7 @@ jobs:
310
310
- name: Write the gitcookies file
311
311
run: echo "${{ secrets.gerritCookie }}" > ~/.gitcookies
312
312
- name: Update Gerrit CL message with success message
313
- run: 'curl -s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Build
313
+ run: 'curl -f - s -H "Content-Type: application/json" --request POST --data ''{"tag":"trybot","message":"Build
314
314
succeeded for ${{ github.event.repository.html_url }}/actions/runs/${{ github.run_id
315
315
}}","labels":{"Code-Review":1}}'' -b ~/.gitcookies https://cue-review.googlesource.com/a/changes/$(basename
316
316
$(dirname $GITHUB_REF))/revisions/$(basename $GITHUB_REF)/review'
@@ -346,12 +346,12 @@ jobs:
346
346
shell: bash
347
347
steps:
348
348
- name: Rebuild tip.cuelang.org
349
- run: curl -s -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook
349
+ run: curl -f - s -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook
350
350
}}
351
351
- name: Trigger unity build
352
- run: 'echo curl -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
353
- }} --request POST --data-binary "{"event_type": "Check against ${GITHUB_SHA}",
354
- "client_payload": {"type": "unity", "payload": {"versions": "\ "commit:${GITHUB_SHA}\" "}}}"
352
+ run: 'curl -f -s -H "Content-Type: application/json" -u cueckoo:${{ secrets.CUECKOO_GITHUB_PAT
353
+ }} --request POST --data-binary "{\ "event_type\ ": \ "Check against ${GITHUB_SHA}\ ",
354
+ \ "client_payload\ ": {\ "type\ ": \ "unity\ ", \ "payload\ ": {\ "versions\ ": \"\\\ "commit:${GITHUB_SHA}\\\"\ "}}}"
355
355
https://api.github.com/repos/cue-sh/unity/dispatches'
356
356
-- internal/ci/ci_tool.cue --
357
357
// Copyright 2021 The CUE Authors
@@ -1414,7 +1414,7 @@ tip_triggers: _#bashWorkflow & {
1414
1414
run: "\(_#curl) -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.CuelangOrgTipRebuildHook }}"
1415
1415
}, {
1416
1416
name: "Trigger unity build"
1417
- run: "echo \(_#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"
1417
+ 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"
1418
1418
}]
1419
1419
}
1420
1420
}
@@ -1425,10 +1425,10 @@ new_version_triggers: _#bashWorkflow & {
1425
1425
"runs-on": _#linuxMachine
1426
1426
steps: [{
1427
1427
name: "Rebuild tip.cuelang.org"
1428
- 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/cuelang/cuelang.org/dispatches"
1428
+ 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/cuelang/cuelang.org/dispatches"
1429
1429
}, {
1430
1430
name: "Trigger unity build"
1431
- 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"
1431
+ 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"
1432
1432
}]
1433
1433
}
1434
1434
}
@@ -1559,4 +1559,4 @@ _#copybaraSteps: {
1559
1559
_#name: string
1560
1560
_#cmd: string
1561
1561
}
1562
- _#curl: "curl -s"
1562
+ _#curl: "curl -f - s"
0 commit comments