Skip to content

Commit

Permalink
fix(cicd): fail job if steps got failed
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed May 22, 2024
1 parent f9319b3 commit 05cf9c8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,29 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable

- name: Compile TextMate Grammar
id: compile-tmGrammar
run: |
set +e
chmod +x ./scripts/compile-grammar.sh
./scripts/compile-grammar.sh
exitcode="$?"
echo "exitcode=$exitcode" >> $GITHUB_OUTPUT
exit "$exitcode"
shell: bash

- if: steps.compile-tmGrammar.outcome != 'success'
run: |
exit 1
shell: bash

- name: Compile Coverage Badge SVG
id: compile-svg
run: |
sudo apt-get install -y xsltproc
make -B $(pwd)/images/coverage-badge.svg
shell: bash

- if: steps.compile-svg.outcome != 'success'
run: |
exit 1
shell: bash

- name: Import GPG key
id: import-gpg
uses: crazy-max/[email protected]
Expand Down

0 comments on commit 05cf9c8

Please sign in to comment.