Format our yaml files (#9926)
This formats all our yaml files with [Prettier](https://prettier.io/).
I don't think this is a really important property, but the RedHat YAML
language server, which appears to back the only YAML VSCode extension
uses this formatter and I'm really tired of getting random edits from
running the formatter. In particular, yamllint wants there to be two
spaces between code and a comment and Prettier adds only one. This is
extremely annoying and I cannot imagine why anyone would care whether
there are one or two spaces there (other than the Google Python style
guide and linter). So I've updated our yamllint config to also stop
complaining about this trivial thing.
I don't propose that we start mandating Prettier now (though we might
consider it at some point), but this formatting does increase the
consistency in our YAML files (in particular, with which types of
quotes we use).
diff --git a/.github/workflows/oneshot_candidate_release.yml b/.github/workflows/oneshot_candidate_release.yml
index 0f3a1d3..e6fa281 100644
--- a/.github/workflows/oneshot_candidate_release.yml
+++ b/.github/workflows/oneshot_candidate_release.yml
@@ -9,7 +9,7 @@
runs-on: ubuntu-18.04
steps:
- name: Checking out repository
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2
+ uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2
with:
token: ${{ secrets.WRITE_ACCESS_TOKEN }}
@@ -26,7 +26,7 @@
git tag "${tag_name}"
- name: Pushing changes
- uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 # v0.6.0
+ uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 # v0.6.0
with:
github_token: ${{ secrets.WRITE_ACCESS_TOKEN }}
branch: ${{ github.ref_name }}
@@ -34,7 +34,7 @@
- name: Create Release
id: create_release
- uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
+ uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1
env:
GITHUB_TOKEN: ${{ secrets.WRITE_ACCESS_TOKEN }}
with:
@@ -46,7 +46,7 @@
prerelease: true
- name: "Invoke workflow :: Build Native Release Packages"
- uses: benc-uk/workflow-dispatch@4c044c1613fabbe5250deadc65452d54c4ad4fc7 # v1
+ uses: benc-uk/workflow-dispatch@4c044c1613fabbe5250deadc65452d54c4ad4fc7 # v1
with:
workflow: Build Native Release Packages
token: ${{ secrets.WRITE_ACCESS_TOKEN }}