diff --git a/.scripts b/.scripts deleted file mode 100644 index 8cc41a647..000000000 --- a/.scripts +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - - -echo "added dummy file 6" >> file28.txt - - -if [[ -n "$(git status --porcelain)" ]]; then - echo "Changes found" - git config user.name jstan-isch - git config user.email stanleyikegwuonu@gmail.com - git add . - git commit -m "generated" - git push -else - echo "No changes found, exiting." - echo "Job Completed!" diff --git a/curl.sh b/curl.sh new file mode 100644 index 000000000..bed00677e --- /dev/null +++ b/curl.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Github app uses this script to create check runs +# for a commit sha + +/usr/bin/curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H 'Authorization: Bearer $GITHUB_TOKEN' \ + https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \ + -d '{"name":"myEvent", "head_sha":"$SHA", "status":"completed", "conclusion":"$STATUS"}'