mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-19 03:49:22 +08:00
fix: 更新 dev 工作流
This commit is contained in:
15
.github/workflows/preview-theme.yaml
vendored
15
.github/workflows/preview-theme.yaml
vendored
@@ -1,9 +1,10 @@
|
||||
name: Build Theme Package
|
||||
name: Build Preview Theme Package
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
default: "dev"
|
||||
|
||||
jobs:
|
||||
build-and-package:
|
||||
@@ -40,9 +41,9 @@ jobs:
|
||||
|
||||
# Update komari-theme.json with new version and description
|
||||
jq --arg version "$VERSION_DATE" \
|
||||
--arg desc "Preview theme for Komari Monitor (commit: $COMMIT_HASH)" \
|
||||
'.version = $version | .description = $desc' \
|
||||
komari-theme.json > komari-theme-updated.json
|
||||
--arg desc "Preview theme for PurCarte (commit: $COMMIT_HASH)" \
|
||||
'.name = .name + " (Preview)" | .short = .short + "Preview" | .version = $version | .description = $desc' \
|
||||
komari-theme.json > komari-theme-updated.json
|
||||
|
||||
mv komari-theme-updated.json komari-theme.json
|
||||
|
||||
|
Reference in New Issue
Block a user