mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-29 21:37:42 -04:00
fix(docs): meta file generation override on workflow
This commit is contained in:
parent
5dbbb0a677
commit
b98bf780a9
1 changed files with 4 additions and 0 deletions
4
.github/workflows/sync-website.yml
vendored
4
.github/workflows/sync-website.yml
vendored
|
|
@ -46,6 +46,10 @@ jobs:
|
||||||
if [ -d "/tmp/docs-$tag/docs" ]; then
|
if [ -d "/tmp/docs-$tag/docs" ]; then
|
||||||
name="v${tag#v}"
|
name="v${tag#v}"
|
||||||
cp -r "/tmp/docs-$tag/docs" "$TARGET/$name"
|
cp -r "/tmp/docs-$tag/docs" "$TARGET/$name"
|
||||||
|
jq --arg title "$name" --arg desc "$name release" \
|
||||||
|
'.title = $title | .description = $desc | .root = true' \
|
||||||
|
"$TARGET/$name/meta.json" > "$TARGET/$name/meta.json.tmp" \
|
||||||
|
&& mv "$TARGET/$name/meta.json.tmp" "$TARGET/$name/meta.json"
|
||||||
fi
|
fi
|
||||||
git worktree remove /tmp/docs-"$tag"
|
git worktree remove /tmp/docs-"$tag"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue