Skip to content

Commit c30d948

Browse files
committed
fix: use default env var
1 parent ff5daf9 commit c30d948

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/check.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: Checks
22

33
on: [push]
44

5-
env:
6-
__CI__: true
7-
85
jobs:
96
setup:
107
runs-on: ubuntu-20.04

scripts/post-gen/global.sh

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
#!/bin/bash
22

3-
if [[ $__CI__ ]]; then
3+
if [[ $CI ]]; then
44
exit 0
55
fi
66

7-
echo "> Formatting specs..."
7+
format_specs() {
8+
set +e
89

9-
yarn specs:format
10+
echo "> Formatting specs..."
11+
12+
log=$(yarn specs:format)
13+
14+
if [[ $? != 0 ]]; then
15+
echo "$log"
16+
exit 1
17+
fi
18+
19+
set -e
20+
}
21+
22+
format_specs

0 commit comments

Comments
 (0)