From ff14f8c605ebb9cfed1546c053a66899e0184727 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 02:06:22 +0000 Subject: [PATCH 1/3] Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 2 to 4.1.7. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v2...v4.1.7) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42708e9..4d95a27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,7 +94,7 @@ jobs: runs-on: [ubuntu-latest] steps: - name: Download - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4.1.7 - name: Display structure of downloaded files run: ls -R - name: zip win32-x64 From 2128c558c976f8c6fc8e6021b416878ec34877cf Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Sat, 28 Sep 2024 16:41:43 +1000 Subject: [PATCH 2/3] fix(#184): --diagnosis-as-error when using --workspace --- CodeFormat/src/LuaCheck.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CodeFormat/src/LuaCheck.cpp b/CodeFormat/src/LuaCheck.cpp index 45ed8e9..86ca8a8 100644 --- a/CodeFormat/src/LuaCheck.cpp +++ b/CodeFormat/src/LuaCheck.cpp @@ -112,6 +112,7 @@ bool LuaCheck::CheckSingleFile(const FormatContext &context, std::string_view pa bool LuaCheck::CheckWorkspace(const FormatContext &context) { auto workspace = context.GetWorkspace(); + bool diagnosis = false; FileFinder finder(workspace); finder.AddFindExtension(".lua"); finder.AddFindExtension(".lua.txt"); @@ -136,10 +137,12 @@ bool LuaCheck::CheckWorkspace(const FormatContext &context) { auto style = context.GetStyle(relativePath); if (CheckSingleFile(context, relativePath, std::move(opText.value()), style)) { std::cerr << util::format("Check {} ok.", relativePath) << std::endl; + } else { + diagnosis = true; } } else { std::cerr << util::format("Can not read file {}", relativePath) << std::endl; } } - return true; -} \ No newline at end of file + return !diagnosis; +} From 5cb772d714628a9d0f1c5eb3b15804ffd17c5975 Mon Sep 17 00:00:00 2001 From: CppCXY <812125110@qq.com> Date: Sat, 28 Sep 2024 15:20:30 +0800 Subject: [PATCH 3/3] Fix release --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d95a27..4767d7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,7 +94,7 @@ jobs: runs-on: [ubuntu-latest] steps: - name: Download - uses: actions/download-artifact@v4.1.7 + uses: actions/download-artifact@v3 - name: Display structure of downloaded files run: ls -R - name: zip win32-x64