Make rules-to-wiki Gradle 6 compatible

This commit is contained in:
altrisi authored and GitHub committed 2020-10-25 12:48:56 +01:00
1 parent 286fdd9899
commit 82a77f4ba8
1 file changed
+9 -1
+9 -1
View File
@@ -64,7 +64,15 @@ jobs:
repository: ${{github.repository}}.wiki
path: wiki
- name: Proccess Gradle log into a pretty wiki page
run: from1="# Carpet"; to2="BUILD SUCCESSFUL"; a="$(cat settings-toProccess.txt)"; a="$(echo "${a#*"$from1"}")"; echo "$from1${a%%"$to2"*}" > wiki/Current-Available-Settings.md
run: |
from1="# Carpet";
File=settings-toProccess.txt
if grep -q "Deprecated Gradle features" "$File"; then # Happens after update to Gradle 6
to2="Deprecated Gradle features";
else
to2="BUILD SUCCESSFUL"
fi
a="$(cat settings-toProccess.txt)"; a="$(echo "${a#*"$from1"}")"; echo "$from1${a%%"$to2"*}" > wiki/Current-Available-Settings.md
- name: Commit updated wiki page
continue-on-error: true
run: |