Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit d9c5cca

Browse files
committed
Add debug info to deploy script. [ci skip]
1 parent 0db9a01 commit d9c5cca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

housekeeping/deploy.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,21 @@ npm run release
77
git push --quiet "https://$GH_TOKEN:[email protected]/shockone/black-screen.git" HEAD:master --tags > /dev/null 2>&1
88

99
TAG_NAME=$(git describe --abbrev=0)
10+
echo "($?) Current tag: $TAG_NAME"
11+
1012
PREVIOUS_TAG_NAME=$(git describe --abbrev=0 --tags "$TAG_NAME^")
13+
echo "($?) Previous tag: $PREVIOUS_TAG_NAME"
14+
1115
LAST_DRAFT_ID=$(curl "https://$GH_TOKEN:[email protected]/repos/shockone/black-screen/releases" | python -c "import json,sys; array=json.load(sys.stdin); print array[0]['id'];")
16+
echo "($?) Last draft ID: $LAST_DRAFT_ID"
17+
1218
BODY=$(git log --oneline --no-merges $TAG_NAME...$PREVIOUS_TAG_NAME)
19+
echo "($?) Body:"
20+
echo $BODY
21+
1322
ESCAPED_BODY=$(echo $BODY | grep -v '\[ci skip\]' | tr '\n' '|' | sed 's/|/\\n/g' | sed 's/"/\\"/g')
23+
echo "($?) Escaped body:"
24+
echo $ESCAPED_BODY
1425

1526
curl --request PATCH "https://$GH_TOKEN:[email protected]/repos/shockone/black-screen/releases/$LAST_DRAFT_ID" \
1627
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)