mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Update and rename .scripts to curl.sh
This commit is contained in:
parent
dae68a5c28
commit
aeb6378932
2 changed files with 11 additions and 16 deletions
16
.scripts
16
.scripts
|
@ -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
11
curl.sh
Normal 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"}'
|
Loading…
Reference in a new issue