chore(ci): simplify `check-i18n-style` + stop relying on git
This commit is contained in:
parent
419b80d11e
commit
fdd9d77d41
|
@ -8,10 +8,9 @@
|
||||||
-define(RED, "\e[31m").
|
-define(RED, "\e[31m").
|
||||||
-define(RESET, "\e[39m").
|
-define(RESET, "\e[39m").
|
||||||
|
|
||||||
main([Files0]) ->
|
main(Files) ->
|
||||||
io:format(user, "checking i18n file styles~n", []),
|
io:format(user, "checking i18n file styles~n", []),
|
||||||
_ = put(errors, 0),
|
_ = put(errors, 0),
|
||||||
Files = string:tokens(Files0, "\n"),
|
|
||||||
ok = load_hocon(),
|
ok = load_hocon(),
|
||||||
ok = lists:foreach(fun check/1, Files),
|
ok = lists:foreach(fun check/1, Files),
|
||||||
case get(errors) of
|
case get(errors) of
|
||||||
|
|
|
@ -3,6 +3,4 @@ set -euo pipefail
|
||||||
|
|
||||||
cd -P -- "$(dirname -- "$0")/.."
|
cd -P -- "$(dirname -- "$0")/.."
|
||||||
|
|
||||||
all_files="$(git ls-files 'rel/i18n/*.hocon')"
|
./scripts/check-i18n-style.escript rel/i18n/*.hocon
|
||||||
|
|
||||||
./scripts/check-i18n-style.escript "$all_files"
|
|
||||||
|
|
Loading…
Reference in New Issue