From 455bb3327d423f85ef4b281b5a9f9af0aefe0891 Mon Sep 17 00:00:00 2001 From: Eptwalabha Date: Tue, 5 Mar 2024 10:57:41 +0100 Subject: [PATCH 1/3] add event workflow_dispatch add the `workflow_dispatch` event to trigger the CI --- .github/workflows/erlang.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index 9a44aeb..ab25d0c 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -5,6 +5,7 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: permissions: contents: read From fa9496ed9c4cd3108ac34b9a0e8e47bc9781f249 Mon Sep 17 00:00:00 2001 From: Eptwalabha Date: Tue, 5 Mar 2024 11:04:39 +0100 Subject: [PATCH 2/3] Update erlang.yml - bump erlang version to 24 - bump checkout action to v4 --- .github/workflows/erlang.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index ab25d0c..e5c2053 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -17,10 +17,10 @@ jobs: runs-on: ubuntu-latest container: - image: erlang:23.3 + image: erlang:24 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Compile run: rebar3 compile - name: Run dialyzer From 06b5659082e8cb895c4fcb71c5234d1939c80e31 Mon Sep 17 00:00:00 2001 From: Eptwalabha Date: Tue, 5 Mar 2024 11:09:03 +0100 Subject: [PATCH 3/3] mustache.erl - fix linter --- src/mustache.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mustache.erl b/src/mustache.erl index d34e580..04b394d 100644 --- a/src/mustache.erl +++ b/src/mustache.erl @@ -162,8 +162,8 @@ do_render([List | Tail], Context, Acc) when is_list(List) -> do_render(Tail, Context, [List | Acc]). substitute(Lambda, Context, Escape) when is_function(Lambda, 0) -> - Ast = compile(to_str(Lambda())), - Value = do_render(Ast, Context, []), + AST = compile(to_str(Lambda())), + Value = do_render(AST, Context, []), escape(Value, Escape); substitute(RawValue, _, Escape) -> Value = to_str(RawValue),