Skip to content

Instantly share code, notes, and snippets.

@heph
Created December 18, 2019 19:32
Show Gist options
  • Save heph/8cd133a996e65507d0abe9561fa580a5 to your computer and use it in GitHub Desktop.
Save heph/8cd133a996e65507d0abe9561fa580a5 to your computer and use it in GitHub Desktop.
Converts a json file to yaml. Pretty sure I stole this from the travis-ci project.
#!/usr/bin/env ruby
# frozen_string_literal: true
require 'json'
require 'yaml'
$stdout.puts YAML.dump(JSON.parse($stdin.read))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment