test
This commit is contained in:
parent
10d6c1480e
commit
1c1bcc9e60
@ -18,14 +18,14 @@ jobs:
|
|||||||
OWNER="greyhound"
|
OWNER="greyhound"
|
||||||
API_TOKEN=${{ vars.PAT_TOKEN }}
|
API_TOKEN=${{ vars.PAT_TOKEN }}
|
||||||
|
|
||||||
tag=$(curl -s -H "Authorization: token $API_TOKEN" \
|
tag=$(curl -s -H "Authorization: token $API_TOKEN" "$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/tags/${{ inputs.tag }}")
|
||||||
"$GITEA_API_URL/repos/$OWNER/${{ inputs.repo }}/tags/${{ inputs.tag }}")
|
|
||||||
|
|
||||||
echo "Tag details: $tag"
|
echo "Tag details: $tag"
|
||||||
|
|
||||||
if echo "$tag" | jq -e '.name' > /dev/null; then
|
if echo "$tag" | jq -e '.error' > /dev/null; then
|
||||||
|
echo "This Tag not exists"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
echo "This Tag allready exists"
|
echo "This Tag allready exists"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user