Modification CI

Signed-off-by: Gato <cedric@goutailler-olivier.fr>
This commit is contained in:
2026-05-31 17:22:52 +02:00
parent ea54f49024
commit 66e39f15b2
2 changed files with 22 additions and 1 deletions
+22
View File
@@ -48,3 +48,25 @@ jobs:
curl -sf -X POST \
-H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" \
https://watchtower.goutailler-olivier.com/v1/update
- name: Merge release to main
run: |
git config user.name "Gitea Actions"
git config user.email "actions@gitea"
git remote set-url origin https://${{ gitea.actor }}:${{ secrets.RELEASE_TOKEN }}@git.goutailler-olivier.com/${{ gitea.repository }}.git
git fetch origin main
git checkout main
git merge --no-ff ${{ gitea.ref_name }} -m "chore: release ${{ gitea.ref_name }}"
git push origin main
- name: Bump version to next SNAPSHOT on develop
run: |
VERSION=$(echo "${{ gitea.ref_name }}" | sed 's/^v//')
IFS='.' read -r major minor patch <<< "$VERSION"
NEXT_VERSION="$major.$minor.$((patch + 1))-SNAPSHOT"
git fetch origin develop
git checkout develop
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$NEXT_VERSION\"/" package.json
git add package.json
git commit -m "chore: bump version to $NEXT_VERSION"
git push origin develop
-1
View File
@@ -26,7 +26,6 @@
</svg>
<span class="sidebar-logo-text">Bonsai</span>
<div class="sidebar-version-row">
<span class="sidebar-version">v{{ version }}</span>
<button
class="sidebar-info-btn"
[class.sidebar-info-btn--warn]="versionMismatch()"