Update and rename .scripts to curl.sh

This commit is contained in:
jstan-isch 2023-01-28 14:50:47 -06:00 committed by GitHub
parent dae68a5c28
commit aeb6378932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 16 deletions

View file

@ -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!"

11
curl.sh Normal file
View file

@ -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"}'