Skip to content

Commit

Permalink
ensure dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie-pc committed Sep 11, 2023
1 parent 7aac281 commit 1ae2f55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/check_export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
- uses: actions/setup-python@v3
- run: |
f=${{ matrix.example }}
if [[ -d $f ]]; then
if [[ ! -d $f ]]; then
echo "$f is not a directory!"
exit 1
else
if [[ ! -f $f/requirements.txt ]]; then
echo "$f/requirements.txt is MISSING"
exit 1
Expand Down

0 comments on commit 1ae2f55

Please sign in to comment.