We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7ea8e commit ffbfda2Copy full SHA for ffbfda2
README.md
@@ -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
@@ -22,7 +22,10 @@ create_release(){
22
--data "$PAYLOAD" |\
23
tee -a /dev/stderr | jq -r '.id') 2> /tmp/stderr 1> /tmp/stdout
24
25
- test $(cat /tmp/stderr | head -n 1) -eq 200
+ 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
29
TAG_ID=$(cat /tmp/stdout)
30
echo "> Release created with id $TAG_ID" >&2
31
echo $TAG_ID
0 commit comments