ci-test (working now) #2
1 changed files with 4 additions and 5 deletions
|
@ -46,9 +46,8 @@ jobs:
|
|||
echo
|
||||
- name: get last release
|
||||
run: |
|
||||
curl -X 'GET' \
|
||||
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?draft=true&pre-release=true' \
|
||||
-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})
|
||||
- name: create release
|
||||
run: |
|
||||
curl -X 'POST' \
|
||||
|
@ -59,8 +58,8 @@ jobs:
|
|||
-d '{
|
||||
"body": "Automated Build",
|
||||
"draft": true,
|
||||
"name": "Release ${{ steps.package-version.outputs.current-version}}",
|
||||
"name": "Automated Release $VERSION",
|
||||
"prerelease": true,
|
||||
"tag_name": "v${{ steps.package-version.outputs.current-version}}",
|
||||
"tag_name": "$VERSION",
|
||||
}'
|
||||
|
||||
|
|
Loading…
Reference in a new issue