This commit is contained in:
parent
e6cdf72ac6
commit
895fd8dd35
1 changed files with 1 additions and 4 deletions
|
@ -44,13 +44,10 @@ jobs:
|
||||||
tree builds
|
tree builds
|
||||||
echo "---"
|
echo "---"
|
||||||
echo
|
echo
|
||||||
- name: get last release
|
- name: create release
|
||||||
run: |
|
run: |
|
||||||
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 $VERSION
|
|
||||||
- name: create release
|
|
||||||
run: |
|
|
||||||
curl -X 'POST' \
|
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' \
|
||||||
|
|
Loading…
Reference in a new issue