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-lts-docs-watcher.yaml b/tf-a-lts-docs-watcher.yaml
index aa8c4d6..9df119d 100644
--- a/tf-a-lts-docs-watcher.yaml
+++ b/tf-a-lts-docs-watcher.yaml
@@ -3,47 +3,36 @@
node: master
project-type: freestyle
concurrent: false
- description:
- This job was superceded by tf-a-lts-release-docs as part of
- larger-scale release automation efforts
- (https://linaro.atlassian.net/browse/TFC-545). It is expected
- to be removed after new setup is better tested (tentatively
- by 2024-06-01).
- ---
- Triggers whenever a code change is merged into the lts branch
- or a lts tag is created 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: This job was superceded by tf-a-lts-release-docs as part of larger-scale release automation efforts (https://linaro.atlassian.net/browse/TFC-545). It is expected to be removed after new setup is better tested (tentatively by 2024-06-01). --- Triggers whenever a code change is merged into the lts branch or a lts tag is created 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: true
builders:
- - shell:
- !include-raw: scripts/tf-a-lts-docs-watcher.sh
+ - shell: !include-raw: scripts/tf-a-lts-docs-watcher.sh
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: REG_EXP
- branch-pattern: 'lts-v.*'
- - branch-compare-type: REG_EXP
- branch-pattern: refs/tags/lts-v.*
- 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: REG_EXP
+ branch-pattern: lts-v.*
+ - branch-compare-type: REG_EXP
+ branch-pattern: refs/tags/lts-v.*
+ 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_API_TOKEN
- - text:
- credential-id: Trusted_Firmware_ReadTheDocs_Token
- variable: RTD_WEBHOOK_SECRET
+ - timestamps
+ - credentials-binding:
+ - text:
+ credential-id: TF-A-RTD-API-TOKEN
+ variable: RTD_API_TOKEN
+ - text:
+ credential-id: Trusted_Firmware_ReadTheDocs_Token
+ variable: RTD_WEBHOOK_SECRET
publishers:
- - workspace-cleanup
+ - workspace-cleanup