fix: 更新 dev 工作流

This commit is contained in:
Montia37
2025-08-26 16:06:57 +08:00
parent 78e02f0ca2
commit 9904a02205

View File

@@ -1,9 +1,10 @@
name: Build Theme Package name: Build Preview Theme Package
on: on:
push: workflow_dispatch:
branches: inputs:
- dev ref:
default: "dev"
jobs: jobs:
build-and-package: build-and-package:
@@ -40,9 +41,9 @@ jobs:
# Update komari-theme.json with new version and description # Update komari-theme.json with new version and description
jq --arg version "$VERSION_DATE" \ jq --arg version "$VERSION_DATE" \
--arg desc "Preview theme for Komari Monitor (commit: $COMMIT_HASH)" \ --arg desc "Preview theme for PurCarte (commit: $COMMIT_HASH)" \
'.version = $version | .description = $desc' \ '.name = .name + " (Preview)" | .short = .short + "Preview" | .version = $version | .description = $desc' \
komari-theme.json > komari-theme-updated.json komari-theme.json > komari-theme-updated.json
mv komari-theme-updated.json komari-theme.json mv komari-theme-updated.json komari-theme.json