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:
|
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user