Skip to content

Commit

Permalink
fix: use default env var
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Dec 13, 2021
1 parent ff5daf9 commit c30d948
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Checks

on: [push]

env:
__CI__: true

jobs:
setup:
runs-on: ubuntu-20.04
Expand Down
19 changes: 16 additions & 3 deletions scripts/post-gen/global.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
#!/bin/bash

if [[ $__CI__ ]]; then
if [[ $CI ]]; then
exit 0
fi

echo "> Formatting specs..."
format_specs() {
set +e

yarn specs:format
echo "> Formatting specs..."

log=$(yarn specs:format)

if [[ $? != 0 ]]; then
echo "$log"
exit 1
fi

set -e
}

format_specs

0 comments on commit c30d948

Please sign in to comment.