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-cleanup.yaml b/tf-a-lts-cleanup.yaml
index 7e44c2f..79c9a17 100644
--- a/tf-a-lts-cleanup.yaml
+++ b/tf-a-lts-cleanup.yaml
@@ -6,28 +6,28 @@
disabled: false
description: Cleanup stale LTS sandbox tags/branches
properties:
- - build-discarder:
- days-to-keep: 180
- num-to-keep: 30
+ - build-discarder:
+ days-to-keep: 180
+ num-to-keep: 30
triggers:
- - timed: 'H 3 * * 0,3'
+ - timed: H 3 * * 0,3
wrappers:
- - credentials-binding:
+ - credentials-binding:
- ssh-user-private-key:
credential-id: TFA_CI_BOT_USER_SSH_KEY
key-file-variable: CI_BOT_KEY
username-variable: CI_BOT_USERNAME
- passphrase-variable: ''
- - timestamps
+ passphrase-variable: ""
+ - timestamps
builders:
- - shell: |
- #!/bin/bash
- set -ex
+ - shell: |
+ #!/bin/bash
+ set -ex
- mkdir -p ~/.ssh/
- ssh-keyscan -p 29418 review.trustedfirmware.org >> ~/.ssh/known_hosts
- export GIT_SSH_COMMAND="ssh -i $CI_BOT_KEY -o 'PubkeyAcceptedKeyTypes +ssh-rsa'"
+ mkdir -p ~/.ssh/
+ ssh-keyscan -p 29418 review.trustedfirmware.org >> ~/.ssh/known_hosts
+ export GIT_SSH_COMMAND="ssh -i $CI_BOT_KEY -o 'PubkeyAcceptedKeyTypes +ssh-rsa'"
- git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
- cd tf-a-ci-scripts/lts
- ./lts-cleanup-sandbox-refs.py --user $CI_BOT_USERNAME --limit 1
+ git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
+ cd tf-a-ci-scripts/lts
+ ./lts-cleanup-sandbox-refs.py --user $CI_BOT_USERNAME --limit 1