Skip to content

Commit 0ac531e

Browse files
authored
FIX: Switch syntax, looks like GH Actions' shell is not bash (#168)
1 parent 59bb85e commit 0ac531e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/update_docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ jobs:
8282
- name: Generate Bruno collection
8383
working-directory: discourse_api_docs
8484
run: |
85-
if [[ -n $(git status --porcelain) ]]; then
86-
npm install && npm run tobruno
85+
if git status --porcelain | grep .; then
86+
npm run tobruno
8787
fi
8888
8989
- name: Create PR
@@ -99,4 +99,3 @@ jobs:
9999
author: discoursebuild <build@discourse.org>
100100
body: |
101101
Updates Documentation with changes from Discourse core
102-

0 commit comments

Comments
 (0)