From f262181b4e16cbb61ed455f40a5df158cd6daff1 Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Sun, 16 Apr 2023 14:54:00 +0200 Subject: [PATCH] Update README on version update --- README.md | 16 ++++++++-------- update.sh | 10 ++++++++++ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d38e875..3d3f077 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@ [中文](./README_zh_CN.md) -* `1.1.76`, `1`, `1.1`, `latest`, `stable` -* `1.0.0`, `1.0` -* `0.17.79`, `0.17` -* `0.16.51`, `0.16` -* `0.15.40`, `0.15` -* `0.14.23`, `0.14` -* `0.13.20`, `0.13` -* `0.12.35`, `0.12` +* `1`, `1.1`, `1.1.80`, `latest`, `stable` +* `1.0`, `1.0.0` +* `0.17`, `0.17.79` +* `0.16`, `0.16.51` +* `0.15`, `0.15.40` +* `0.14`, `0.14.23` +* `0.13`, `0.13.20` +* `0.12`, `0.12.35` ## Tag descriptions diff --git a/update.sh b/update.sh index efc7244..129a672 100755 --- a/update.sh +++ b/update.sh @@ -48,10 +48,20 @@ else fi rm -f -- "$tmpfile" +readme_tags=$(cat buildinfo.json | jq --sort-keys 'keys[]' | tac | (while read line +do + tags="$tags\n* "$(cat buildinfo.json | jq --sort-keys ".$line.tags | sort | .[]" | sed 's/"/`/g' | sed ':a; /$/N; s/\n/, /; ta') +done && echo $tags"\n")) + +perl -i -0777 -pe "s/.+/$readme_tags/s" README.md + git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git add buildinfo.json +git add README.md git commit -a -m "Auto Update Factorio to version: $version" + git tag -f latest git push git push origin --tags -f