@@ -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
|
||||
|
||||
@@ -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()"
|
||||
|
||||
Reference in New Issue
Block a user