From 0406525aa66047d23dd4848890ec0a86c60379bf Mon Sep 17 00:00:00 2001 From: Piotr Semenov Date: Tue, 21 May 2024 20:25:21 +0400 Subject: [PATCH] fix: fail github workflow job if checkPhase failed --- .github/workflows/build-artifacts.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 9a33f01..ee807ca 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -1,13 +1,14 @@ +# yamllint disable rule:line-length --- name: Build Artifacts on: push: - branches: [ main ] - paths-ignore: [ "*.md" ] + branches: [main] + paths-ignore: ["*.md"] pull_request: - branches: [ main ] - paths-ignore: [ "*.md" ] + branches: [main] + paths-ignore: ["*.md"] jobs: Compile-All: @@ -23,8 +24,12 @@ jobs: - name: Compile TextMate Grammar run: | + set +e chmod +x ./scripts/compile-grammar.sh ./scripts/compile-grammar.sh + exitcode="$?" + echo "exitcode=$exitcode" >> $GITHUB_OUTPUT + exit "$exitcode" shell: bash - name: Compile Coverage Badge SVG