ci: format all YAML with `yq`
`yq` is the YAML query tool, used for manipulating YAML files. This
change uses the following command to read in and to pretty-print every
YAML file in this repository:
for x in $(find . -name '*.yaml'); do
yq -i -P -oy $x
done
This makes it a bit easier to automate synchronisation between staging
and upstream, as yq always pretty-prints the entire document when
manipulating files.
Signed-off-by: Chris Kay <chris.kay@arm.com>
Change-Id: If973766fa26500d5320612422d1b4999b23439d3
diff --git a/tf-a-docs-watcher.yaml b/tf-a-docs-watcher.yaml
index b0c492b..93bacb7 100644
--- a/tf-a-docs-watcher.yaml
+++ b/tf-a-docs-watcher.yaml
@@ -3,47 +3,44 @@
node: docker-amd64-tf-a-jammy
project-type: freestyle
concurrent: false
- description:
- Triggers whenever a code change is merged into the master branch of the
- TF-A repository. Executes a webhook to trigger the ReadTheDocs service to
- build a fresh copy of the documentation for one or more branches.
+ description: Triggers whenever a code change is merged into the master branch of the TF-A repository. Executes a webhook to trigger the ReadTheDocs service to build a fresh copy of the documentation for one or more branches.
disabled: false
builders:
- - shell: |-
- #!/bin/bash -e
- echo "Trigger ReadTheDocs build on the $RTD_BRANCHES branch and the latest version"
- RTD_API="https://readthedocs.org/api/v3/projects/trustedfirmware-a"
- echo "Trigger build $RTD_BRANCHES branch"
- curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/$RTD_BRANCHES/builds/ | jq .
- echo "Trigger build latest version"
- curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/latest/builds/ | jq .
+ - shell: |-
+ #!/bin/bash -e
+ echo "Trigger ReadTheDocs build on the $RTD_BRANCHES branch and the latest version"
+ RTD_API="https://readthedocs.org/api/v3/projects/trustedfirmware-a"
+ echo "Trigger build $RTD_BRANCHES branch"
+ curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/$RTD_BRANCHES/builds/ | jq .
+ echo "Trigger build latest version"
+ curl -s -X POST -H "Authorization: Token ${RTD_TOKEN}" ${RTD_API}/versions/latest/builds/ | jq .
properties:
- - build-discarder:
- days-to-keep: 60
- num-to-keep: 10
+ - build-discarder:
+ days-to-keep: 60
+ num-to-keep: 10
triggers:
- - gerrit:
- silent: true
- server-name: 'review.trustedfirmware.org'
- projects:
- - branches:
- - branch-compare-type: PLAIN
- branch-pattern: 'master'
- project-compare-type: PLAIN
- project-pattern: 'TF-A/trusted-firmware-a'
- trigger-on:
- - ref-updated-event
+ - gerrit:
+ silent: true
+ server-name: review.trustedfirmware.org
+ projects:
+ - branches:
+ - branch-compare-type: PLAIN
+ branch-pattern: master
+ project-compare-type: PLAIN
+ project-pattern: TF-A/trusted-firmware-a
+ trigger-on:
+ - ref-updated-event
wrappers:
- - timestamps
- - credentials-binding:
- - text:
- credential-id: TF-A-RTD-API-TOKEN
- variable: RTD_TOKEN
+ - timestamps
+ - credentials-binding:
+ - text:
+ credential-id: TF-A-RTD-API-TOKEN
+ variable: RTD_TOKEN
parameters:
- - string:
- name: RTD_BRANCHES
- default: master
- description: |
- The branch, or branches, to rebuild the documentation for.
+ - string:
+ name: RTD_BRANCHES
+ default: master
+ description: |
+ The branch, or branches, to rebuild the documentation for.
publishers:
- - workspace-cleanup
+ - workspace-cleanup