Skip to content

Commit 8a26948

Browse files
committed
update conditions
1 parent ca00e5a commit 8a26948

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

.github/workflows/check.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ concurrency:
1818

1919
jobs:
2020
build:
21-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
21+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
2222

2323
name: Build
2424

@@ -42,7 +42,7 @@ jobs:
4242
run: pnpm run update-docs
4343

4444
lint:
45-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
45+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
4646

4747
name: Lint & Format
4848

@@ -66,7 +66,7 @@ jobs:
6666
run: pnpm run format
6767

6868
test_local:
69-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
69+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
7070

7171
name: Local Tests
7272

@@ -105,7 +105,7 @@ jobs:
105105
run: pnpm run test:local
106106

107107
test_api:
108-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
108+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
109109

110110
name: API Tests
111111

@@ -134,7 +134,7 @@ jobs:
134134
run: pnpm run test:api
135135

136136
test_python_support:
137-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
137+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
138138

139139
name: Python Support
140140

@@ -174,7 +174,7 @@ jobs:
174174
run: pnpm run test:python
175175

176176
docs:
177-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
177+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
178178

179179
name: Docs build
180180

@@ -192,13 +192,10 @@ jobs:
192192
uses: apify/workflows/pnpm-install@main
193193

194194
- name: Build & deploy docs
195-
run: |
196-
cd website
197-
pnpm install
198-
pnpm run build
195+
run: pnpm --filter website run build
199196

200197
build_bundles:
201-
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
198+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[docs build]') }}
202199

203200
name: Bundles (${{ matrix.label }})
204201

.github/workflows/docs.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,9 @@ jobs:
3535

3636
- name: Build docs
3737
run: |
38-
# update next docs reference
3938
pnpm run update-docs
40-
# go to website dir
41-
cd website
42-
# install website deps
43-
pnpm install
44-
# install the latest theme version
45-
pnpm add @apify/docs-theme@latest
46-
# build the docs
47-
pnpm run build
39+
pnpm --filter website add @apify/docs-theme@latest
40+
pnpm --filter website run build
4841
env:
4942
SMARTLOOK_PROJECT_KEY: ${{ secrets.SMARTLOOK_DOCS_PROJECT_KEY }}
5043
GIT_USER: "apify-service-account:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)