mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
chore: i love refrigerators
This commit is contained in:
10
deploy.sh
10
deploy.sh
@@ -6,7 +6,7 @@ something_went_wrong () {
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $($COMMITSTATUS)" \
|
||||
-H "Authorization: Bearer $COMMITSTATUS" \
|
||||
https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main) \
|
||||
-d '{"state":"failure","description":"The build errored!","context":"deployment/rpi"}'
|
||||
}
|
||||
@@ -16,7 +16,7 @@ something_went_wrong () {
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $($COMMITSTATUS)" \
|
||||
-H "Authorization: Bearer $COMMITSTATUS" \
|
||||
https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main) \
|
||||
-d '{"state":"pending","description":"Building...","context":"deployment/rpi"}'
|
||||
|
||||
@@ -34,9 +34,7 @@ https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $($COMMITSTATUS)" \
|
||||
-H "Authorization: Bearer $COMMITSTATUS" \
|
||||
https://api.github.com/repos/SrIzan10/vinci/statuses/$(git rev-parse origin/main) \
|
||||
-d '{"state":"success","description":"The build errored!","context":"deployment/rpi"}'
|
||||
} || {
|
||||
something_went_wrong()
|
||||
}
|
||||
} || something_went_wrong()
|
||||
Reference in New Issue
Block a user