Change YAML files on-the-fly

Editing YAML files on-the-fly using the yq tool.

For example, to disable jupyter book cell execution in GitHub actions, one can edit docs/_config.yml and set execute_notebooks to off.

- name: Disable code cell execution
  uses: mikefarah/yq@master
  with:
    cmd: yq -i '.execute.execute_notebooks = "off"' 'docs/_config.yml'

Comments