Update README on version update

This commit is contained in:
Florian Kinder 2023-04-16 14:54:00 +02:00
parent f7282c516c
commit f262181b4e
2 changed files with 18 additions and 8 deletions

View File

@ -3,14 +3,14 @@
[中文](./README_zh_CN.md)
<!-- start autogeneration tags -->
* `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`
<!-- end autogeneration tags -->
## Tag descriptions

View File

@ -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/<!-- start autogeneration tags -->.+<!-- end autogeneration tags -->/<!-- start autogeneration tags -->$readme_tags<!-- end autogeneration 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