From d7b5c047afed5cc1ef416b88c1466460e8c6eac9 Mon Sep 17 00:00:00 2001 From: Adam R <13562139+catenocrypt@users.noreply.github.com> Date: Mon, 22 Feb 2021 17:10:44 +0100 Subject: [PATCH] History update build fixes (#5658) Co-authored-by: Catenocrypt --- .github/workflows/history.yml | 2 +- script/entrypoint/history.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/history.yml b/.github/workflows/history.yml index e3fb5e59f..25911e0f1 100644 --- a/.github/workflows/history.yml +++ b/.github/workflows/history.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 with: token: ${{ secrets.COMMIT_TOKEN }} - ref: ${{ github.ref }} + #ref: ${{ github.ref }} - uses: actions/setup-node@v1 with: node-version: 12 diff --git a/script/entrypoint/history.ts b/script/entrypoint/history.ts index 01b250f44..b28250b95 100644 --- a/script/entrypoint/history.ts +++ b/script/entrypoint/history.ts @@ -2,7 +2,10 @@ import { processChanges } from "../generic/history"; export async function main(): Promise { try { - await processChanges(); + const ret = await processChanges(); + if (ret != 0) { + process.exit(ret); + } } catch(err) { console.error(err); process.exit(1);