From 0533489746ea849af7916eaddf21ae7b2274108b Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Mon, 14 Feb 2022 23:07:29 +0800 Subject: [PATCH] Update action Tester --- .github/workflows/tester.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index d18b60f..f0d75c9 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -25,5 +25,13 @@ jobs: repository: SukkaLab/hexo-many-posts path: source/_posts/hexo-many-posts - run: npx hexo config theme next + - uses: DamianReeves/write-file-action@master + with: + path: themes/next/scripts/error.js + contents: | + hexo.log.error = function(...params) { + console.error("ERROR", ...params); + process.exit(1); + } - name: Test run: npx hexo g