ci-test (working now) #2
1 changed files with 3 additions and 2 deletions
|
@ -50,7 +50,7 @@ jobs:
|
||||||
VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json')
|
VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json')
|
||||||
VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print}')
|
||||||
echo "Generate new Release"
|
echo "Generate new Release"
|
||||||
curl -X 'POST' \
|
ID=$(curl -X 'POST' \
|
||||||
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases' \
|
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases' \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
|
@ -61,4 +61,5 @@ jobs:
|
||||||
\"name\": \"Automated Release $VERSION\",
|
\"name\": \"Automated Release $VERSION\",
|
||||||
\"prerelease\": true,
|
\"prerelease\": true,
|
||||||
\"tag_name\": "$VERSION"
|
\"tag_name\": "$VERSION"
|
||||||
}"
|
}")
|
||||||
|
echo $ID
|
||||||
|
|
Loading…
Reference in a new issue