yaml

6 posts tagged “yaml”.

  1. 2025
  2. Auto-formatting YAML files with yamlfmt

    I decided to see if there was an equivalent of Black or Prettier for YAML files. I found yamlfmt from Google. Update : It turns out Prettier can format YAML too.

    2 min read
  3. 2024
  4. Conditionally running a second job in a GitHub Actions workflow

    My simonwillisonblog-backup workflow periodically creates a JSON backup of my blog's PostgreSQL database, using db-to-sqlite and sqlite-diffable.

    1 min read
  5. Controlling the style of dumped YAML using PyYAML

    I had a list of Python dictionaries I wanted to output as YAML, but I wanted to control the style of the output.

    1 min read
  6. 2023
  7. Building and deploying a custom site using GitHub Actions and GitHub Pages

    I figured out a minimal pattern for building a completely custom website using GitHub Actions and deploying the result to GitHub Pages. First you need to enable GitHub Pages for the repository.

    1 min read
  8. Concatenating strings and newlines in Google Sheets

    I was asked if there was a way to run shot-scraper against a list of URLs in a Google Sheet. I came up with this example sheet which uses a formula to code-generate the YAML configuration needed by…

    1 min read
  9. Dump out all GitHub Actions context

    Useful for seeing what's available for conditions (see context and expression syntax). I copied this example action from here and deployed it here. Here's an example run.

    1 min read