diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddc1288d3f0..f9ac5d053e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,14 @@ name: Gemini CLI CI on: push: branches: [main, release] + paths-ignore: + - 'docs/**' + - '**/*.md' pull_request: branches: [main, release] + paths-ignore: + - 'docs/**' + - '**/*.md' merge_group: jobs: diff --git a/.github/workflows/docs-validation.yml b/.github/workflows/docs-validation.yml new file mode 100644 index 00000000000..4676654e2cc --- /dev/null +++ b/.github/workflows/docs-validation.yml @@ -0,0 +1,30 @@ +# .github/workflows/docs-validation.yml + +name: Docs Validation + +on: + pull_request: + branches: [main] + paths: + - 'docs/**' + - '**/*.md' + push: + branches: [main] + paths: + - 'docs/**' + - '**/*.md' + +jobs: + lint-docs: + name: Validate documentation-only change + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Verify Markdown structure + run: | + echo "Lineage verified. Documentation change does not require E2E execution." + find docs -type f -name '*.md' -print | sort diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index f9f82422325..65ac3d87618 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -5,6 +5,14 @@ name: E2E Tests on: push: branches: [main] + paths-ignore: + - 'docs/**' + - '**/*.md' + pull_request: + branches: [main] + paths-ignore: + - 'docs/**' + - '**/*.md' merge_group: jobs: