Skip to content

Commit ecc4bbe

Browse files
authored
ci: trigger docs deployment only when modifying docs/** (#1478)
1 parent 9a66cca commit ecc4bbe

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Deploy documentation
22
on:
33
push:
4+
paths:
5+
- "docs/**"
46
branches:
57
- main
68
- 2.x
@@ -10,11 +12,8 @@ jobs:
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Trigger documentation deployment
13-
uses: octokit/[email protected]
15+
uses: diekotto/repository-dispatch@v1
1416
with:
15-
route: POST /repos/:owner/:repo/dispatches
16-
owner: tempestphp
17-
repo: tempest-docs
18-
event_type: deploy
19-
env:
20-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
token: ${{ secrets.DOCS_DEPLOY_TRIGGER_PAT }}
18+
repository: tempestphp/tempest-docs
19+
event-type: deploy

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Integration Tests
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- ".github/**"
58
workflow_dispatch:
69
schedule:
710
- cron: "0 0 * * *"

.github/workflows/isolated-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Isolated tests
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- ".github/**"
58
workflow_dispatch:
69
schedule:
710
- cron: "0 0 * * *"

.github/workflows/trigger-tempest-app-qa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Trigger tempest/app QA
33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- "docs/**"
8+
- ".github/**"
69

710
jobs:
811
trigger:

.github/workflows/trigger-tempest-clean-qa.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Trigger tempest/clean QA
33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- "docs/**"
8+
- ".github/**"
69

710
jobs:
811
trigger:

.github/workflows/validate-packages.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
name: Validate Packages
1+
name: Validate packages
22

33
on:
44
pull_request:
5+
paths-ignore:
6+
- "docs/**"
7+
- ".github/**"
58
workflow_dispatch:
69

710
jobs:

0 commit comments

Comments
 (0)