citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

httpalert (339B)


      1 #!/usr/bin/env bash
      2 
      3 awk '/67e43f8b407c53e6c5a7aaa38a1ec8e9/ { OK=1 } /^$/ { if (OK == 1) GO=1 } GO==1 { print $0 }' | 
      4   jq -r '.payload | "circleci - \(.workflows.job_name) - \(.reponame) - \(.outcome)"' | 
      5   /home/jb55/bin/sendalert 
      6 
      7 printf 'HTTP/1.0 200\n'
      8 printf 'Content-Type: text/plain\n'
      9 printf 'Content-Length: 0\n'
     10 printf '\n'