Created
December 18, 2019 19:32
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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