Created
December 27, 2019 10:21
-
-
Save gpichot/874a19d858413f7e4590d940b7e9a234 to your computer and use it in GitHub Desktop.
Gitlab ci lint zsh
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
function gitlabcilint() { | |
data=$(cat .gitlab-ci.yml | node -e 'fs=require("fs");console.log(JSON.stringify({content:fs.readFileSync(0,"utf8")}))') | |
curl --header "Content-Type: application/json" https://gitlab.com/api/v4/ci/lint --data "${data}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment