-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cicd): fail job if steps got failed
- Loading branch information
1 parent
f9319b3
commit 05cf9c8
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|