message: Only record the Cypress tests in CI if the env var is set
diff: @@ -65,7 +65,8 @@ jobs:
  yarn lint
  yarn cypress verify
  hugo server --baseURL "http://localhost" --disableFastRender --minify > /dev/null &
  - yarn cypress run --record
  + # Only record the Cypress test if the env var is set, see: https://stackoverflow.com/a/13864829
  + if [ -z ${CYPRESS_RECORD_KEY+x} ]; then yarn cypress run; else yarn cypress run --record; fi
  workflows:
  version: 2
  