mirror of
https://codeberg.org/forgejo/docs.git
synced 2025-04-27 06:00:18 +03:00
admin: release schedule in JSON and markdown
This commit is contained in:
parent
953989cd7e
commit
291747bcfb
7 changed files with 47 additions and 24 deletions
23
scripts/release-schedule.sh
Executable file
23
scripts/release-schedule.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if ! which jq >/dev/null; then
|
||||
apt-get install -qq -y jq
|
||||
fi
|
||||
|
||||
dir=docs/admin
|
||||
|
||||
tag="<!-- lines below are replaced -->"
|
||||
schedule="$(sed -e "/$tag/,20000d" <$dir/release-schedule.md)"
|
||||
|
||||
(
|
||||
cat <<EOF
|
||||
$schedule
|
||||
$tag
|
||||
|
||||
| **LTS** | **Version** | **Cut branch** | **Release date** | **End Of Life** |
|
||||
| ------- | ----------- | -------------- | ---------------- | --------------- |
|
||||
EOF
|
||||
jq --raw-output '.[] | "| \(.lts) | \(.major).\(.minor) | \(.cut) | \(.release) | \(.eol) |"' <release-schedule.json
|
||||
) >$dir/release-schedule.md
|
Loading…
Add table
Add a link
Reference in a new issue