Skip to content

Commit cdd0dc2

Browse files
committed
Clean up documentation workflow triggers and conditions
Removed commented-out path filters, scheduled runs, and conditional job execution from the documentation workflow. This simplifies the workflow configuration and improves maintainability.
1 parent c55f01b commit cdd0dc2

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/documentation.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,10 @@ on:
44
# Trigger on pushes to main branch
55
push:
66
branches: [main]
7-
# paths:
8-
# - 'nginx_security_monitor/**'
9-
# - 'src/**' # Ignored in the final version
10-
# - 'bin/**'
11-
# - 'docs/**'
12-
# - 'README.md'
13-
# - 'mkdocs.yml'
14-
# - 'scripts/generate_docs.py'
15-
# - 'docs/docgen-config.yaml'
167

178
# Trigger on pull requests
189
pull_request:
1910
branches: [main]
20-
# paths:
21-
# - 'nginx_security_monitor/**'
22-
# - 'bin/**'
23-
# - 'src/**' # Ignored in the final version
24-
# - 'docs/**'
25-
# - 'README.md'
26-
# - 'mkdocs.yml'
27-
# - 'scripts/generate_docs.py'
28-
# - 'docs/docgen-config.yaml'
2911

3012
# Allow manual trigger
3113
workflow_dispatch:
@@ -34,17 +16,6 @@ on:
3416
description: "Run tests before generating documentation"
3517
required: true
3618
default: "true"
37-
# regenerate_all:
38-
# description: "Regenerate all documentation"
39-
# required: true
40-
# default: "true"
41-
42-
# Scheduled runs
43-
schedule:
44-
# Weekly documentation check on Sundays at 2 AM UTC
45-
- cron: "0 2 * * 0"
46-
# Daily link validation at 6 AM UTC
47-
- cron: "0 6 * * *"
4819

4920
env:
5021
PYTHON_VERSION: "3.9"
@@ -237,7 +208,6 @@ jobs:
237208
update-docs:
238209
runs-on: ubuntu-latest
239210
needs: [qa-report]
240-
if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.base_ref == 'main')
241211

242212
steps:
243213
- name: Checkout repository
@@ -291,7 +261,6 @@ jobs:
291261
deploy-docs:
292262
runs-on: ubuntu-latest
293263
needs: [update-docs]
294-
if: github.ref == 'refs/heads/main' || (github.event_name == 'pull_request' && github.base_ref == 'main')
295264

296265
permissions:
297266
contents: read

0 commit comments

Comments
 (0)