2023-02-05 03:27:55 +01:00
|
|
|
image: alpine/latest
|
|
|
|
packages:
|
|
|
|
- make
|
|
|
|
- emacs-nox
|
|
|
|
- jq
|
|
|
|
secrets:
|
|
|
|
- 45c41227-eb85-4831-942f-12b840504f6c
|
|
|
|
tasks:
|
|
|
|
- build: |
|
|
|
|
cd vc-p4
|
|
|
|
make README.html
|
|
|
|
- readme: |
|
|
|
|
cd vc-p4
|
|
|
|
set +x
|
|
|
|
repo_id=264869
|
|
|
|
readme=README.html
|
|
|
|
jq -sR '{
|
|
|
|
"query": "mutation UpdateRepo($id: Int!, $readme: String!) {
|
|
|
|
updateRepository(id: $id, input: { readme: $readme }) { id }
|
|
|
|
}", "variables": {
|
|
|
|
"id": '$repo_id',
|
|
|
|
"readme": .
|
|
|
|
}
|
|
|
|
}' < $readme \
|
2023-02-05 03:38:13 +01:00
|
|
|
| curl --fail-with-body --oauth2-bearer "$(cat ~/.vc-p4-auth)" \
|
2023-02-05 03:27:55 +01:00
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
-d@- https://git.sr.ht/query
|