3434 name : Slack start message
3535 runs-on : ubuntu-latest
3636 outputs :
37- channel_id : ${{ steps.slack-start.outputs.channel_id }}
3837 ts : ${{ steps.slack-start.outputs.ts }}
3938 steps :
4039 - name : checkout repository
4645 with :
4746 message_prefix : Workflow running
4847
49- # spell check documentation
5048 codespell :
5149 runs-on : ubuntu-latest
5250 steps :
6058 only_warn : 1
6159 ignore_words_list : aoto,daa,te
6260
63- # build storybook
6461 storybook :
6562 runs-on : ubuntu-latest
6663 steps :
8178 name : storybook
8279 path : src/client/storybook-static
8380
84- # build jekyll docs and include storybook + modules
8581 pages :
8682 runs-on : ubuntu-latest
8783 needs : storybook
@@ -95,23 +91,19 @@ jobs:
9591 name : storybook
9692 path : storybook-static
9793
98- # merge storybook into docs folder before Jekyll build
9994 - name : Add Storybook to docs
10095 run : |
10196 mkdir -p docs/storybook
10297 cp -a storybook-static/* docs/storybook/
10398
104- # setup node (needed to run modules generator)
10599 - name : Setup Node
106100 uses : actions/setup-node@v3
107101 with :
108102 node-version : 20
109103
110- # install dependencies for modules script (js-yaml, etc.)
111104 - name : Install Dependencies
112105 run : npm ci
113106
114- # generate modules pages before building site
115107 - name : Generate Modules Pages
116108 run : node docs/scripts/generateModules.js
117109
@@ -129,7 +121,6 @@ jobs:
129121 with :
130122 path : ./_site
131123
132- # deploy to github pages
133124 deploy :
134125 needs : pages
135126 runs-on : ubuntu-latest
@@ -143,7 +134,7 @@ jobs:
143134
144135 slack-finish :
145136 name : Slack final status
146- if : ${{ always() && needs.slack-start.result == 'success' && needs.slack-start.outputs.ts != '' && needs.slack-start.outputs.channel_id != '' }}
137+ if : ${{ always() && needs.slack-start.result == 'success' && needs.slack-start.outputs.ts != '' }}
147138 needs :
148139 - slack-start
149140 - codespell
@@ -171,7 +162,6 @@ jobs:
171162 - name : update slack message
172163 uses : ./.github/actions/slack-run-finish
173164 with :
174- channel_id : ${{ needs.slack-start.outputs.channel_id }}
175165 ts : ${{ needs.slack-start.outputs.ts }}
176166 status : ${{ steps.workflow-status.outputs.status }}
177167 message_prefix : Workflow
0 commit comments