ci-test (working now) #2

Merged
Snoweuph merged 82 commits from ci-test into master 2023-04-05 19:20:53 +00:00
Showing only changes of commit 048c768f93 - Show all commits

View file

@ -46,9 +46,8 @@ jobs:
echo echo
- name: get last release - name: get last release
run: | run: |
curl -X 'GET' \ VERSION=$(curl -X 'GET' 'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?page=1&limit=1' -H 'accept: application/json')
'https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases?draft=true&pre-release=true' \ VERSION=$(echo $VERSION | jq -r '.[0].tag_name' | awk -F. -v OFS=. '{$NF += 1 ; print})
-H 'accept: application/json'
- name: create release - name: create release
run: | run: |
curl -X 'POST' \ curl -X 'POST' \
@ -59,8 +58,8 @@ jobs:
-d '{ -d '{
"body": "Automated Build", "body": "Automated Build",
"draft": true, "draft": true,
"name": "Release ${{ steps.package-version.outputs.current-version}}", "name": "Automated Release $VERSION",
"prerelease": true, "prerelease": true,
"tag_name": "v${{ steps.package-version.outputs.current-version}}", "tag_name": "$VERSION",
}' }'