Skip to content

Commit

Permalink
Update pr-deploy.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Destiny Saturday  <[email protected]>
  • Loading branch information
ThePrimeJnr authored Aug 2, 2024
1 parent 6ca375f commit d8f4347
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pr-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ cleanup() {
PID=$(jq -r --arg key "$PR_ID" '.[$key] // ""' "${PID_FILE}")

if [ -n "$PID" ]; then
kill -9 "$PID"
kill -9 "$PID" || true
jq --arg key "$PR_ID" 'del(.[$key])' "${PID_FILE}" > "${PID_FILE}.tmp" && mv "${PID_FILE}.tmp" "${PID_FILE}"
fi

Expand All @@ -64,6 +64,8 @@ cleanup() {
sleep 1
}

whoami

REPO_ID=$(curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
Expand Down

0 comments on commit d8f4347

Please sign in to comment.