Skip to content

Commit ffbfda2

Browse files
author
Travis CI
committed
fixing release creating
1 parent 3f7ea8e commit ffbfda2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### Creating a tag
2+
```bash
3+
./github-cli.sh create-tag mageddo-projects github-cli v1.3 master
4+
```

github-cli.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ create_release(){
2222
--data "$PAYLOAD" |\
2323
tee -a /dev/stderr | jq -r '.id') 2> /tmp/stderr 1> /tmp/stdout
2424

25-
test $(cat /tmp/stderr | head -n 1) -eq 200
25+
if test "$(cat /tmp/stderr | head -n 1)" -ne "201"; then
26+
echo -e "> Can't create release: \n $(cat /tmp/stderr)"
27+
exit 1
28+
fi
2629
TAG_ID=$(cat /tmp/stdout)
2730
echo "> Release created with id $TAG_ID" >&2
2831
echo $TAG_ID

0 commit comments

Comments
 (0)