feat/sort-instances #69

Merged
josh merged 10 commits from feat/sort-instances into dev 2026-03-29 08:46:15 -04:00
2 changed files with 18 additions and 13 deletions
Showing only changes of commit afbdefa549 - Show all commits

View File

@@ -20,7 +20,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: npm
- run: npm ci
- run: npm test
@@ -48,12 +47,10 @@ jobs:
run: |
LAST_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
if [ -n "$LAST_TAG" ]; then
NOTES=$(git log "${LAST_TAG}..HEAD" --pretty=format:"- %s" --no-merges)
git log "${LAST_TAG}..HEAD" --pretty=format:"- %s" --no-merges > /tmp/release_notes.txt
else
NOTES=$(git log --pretty=format:"- %s" --no-merges)
git log --pretty=format:"- %s" --no-merges > /tmp/release_notes.txt
fi
NOTES_JSON=$(printf '%s' "$NOTES" | python3 -c "import sys,json; print(json.dumps(sys.stdin.read()))")
echo "NOTES=${NOTES_JSON}" >> $GITEA_ENV
- name: Docker metadata
id: meta
@@ -82,14 +79,22 @@ jobs:
- name: Create Gitea release
run: |
python3 -c "
import json, os
notes = open('/tmp/release_notes.txt').read()
version = os.environ['VERSION']
image = os.environ['IMAGE']
payload = {
'tag_name': 'v' + version,
'name': 'Catalyst v' + version,
'body': '### Changes\n\n' + notes + '\n\n### Image\n\n\`' + image + ':' + version + '\`',
'draft': False,
'prerelease': False,
}
print(json.dumps(payload))
" > /tmp/release_body.json
curl -sf -X POST \
-H "Authorization: token ${{ secrets.TOKEN }}" \
-H "Content-Type: application/json" \
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases" \
-d "{
\"tag_name\": \"v${{ env.VERSION }}\",
\"name\": \"Catalyst v${{ env.VERSION }}\",
\"body\": \"### Changes\n\n${{ env.NOTES }}\n\n### Image\n\n\`${{ env.IMAGE }}:${{ env.VERSION }}\`\",
\"draft\": false,
\"prerelease\": false
}"
--data @/tmp/release_body.json

View File

@@ -1,6 +1,6 @@
{
"name": "catalyst",
"version": "1.2.0",
"version": "1.2.1",
"type": "module",
"scripts": {
"start": "node server/server.js",