mirror of
https://github.com/myronblair/novacpx
synced 2026-07-27 20:53:33 -05:00
4d016b4156
- db/migrations/009_email_templates.sql: email_templates table with 8 default templates
- db/schema.sql: email_templates table added
- system.php: email-templates/get/save/delete/test actions with placeholder rendering
- admin.js: notifications page enhanced with template list, edit modal, CRUD, send test
- Templates support placeholders: {{name}}, {{domain}}, {{username}}, {{password}}, etc.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: Auto Version Bump
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- beta
|
|
paths-ignore:
|
|
- 'VERSION'
|
|
- '.github/**'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
bump:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Bump version
|
|
id: bump
|
|
run: |
|
|
BRANCH="${{ github.ref_name }}"
|
|
CURRENT=$(cat VERSION)
|
|
IFS='.' read -r MAJOR MINOR PATCH <<< "${CURRENT%%-*}"
|
|
PATCH=${PATCH:-0}
|
|
|
|
if [ "$BRANCH" = "main" ]; then
|
|
NEW_VERSION="${MAJOR}.${MINOR}.$((PATCH + 1))"
|
|
else
|
|
# beta branch: append -beta.N
|
|
BETA_NUM=$(echo "$CURRENT" | grep -oP '(?<=beta\.)\d+' || echo "0")
|
|
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}-beta.$((BETA_NUM + 1))"
|
|
fi
|
|
|
|
echo "$NEW_VERSION" > VERSION
|
|
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
echo "Bumped $CURRENT → $NEW_VERSION"
|
|
|
|
- name: Commit version
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
git add VERSION
|
|
git commit -m "chore: bump version to ${{ steps.bump.outputs.version }} [skip ci]"
|
|
git push
|