mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
CI: fetch base history on demand
This commit is contained in:
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
@@ -21,10 +21,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 50
|
fetch-depth: 1
|
||||||
fetch-tags: false
|
fetch-tags: false
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
- name: Ensure docs-scope base commit
|
||||||
|
uses: ./.github/actions/ensure-base-commit
|
||||||
|
with:
|
||||||
|
base-sha: ${{ github.event_name == 'push' && github.event.before || github.event.pull_request.base.sha }}
|
||||||
|
fetch-ref: ${{ github.event_name == 'push' && github.ref_name || github.event.pull_request.base.ref }}
|
||||||
|
|
||||||
- name: Detect docs-only changes
|
- name: Detect docs-only changes
|
||||||
id: check
|
id: check
|
||||||
uses: ./.github/actions/detect-docs-changes
|
uses: ./.github/actions/detect-docs-changes
|
||||||
@@ -46,10 +52,16 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 50
|
fetch-depth: 1
|
||||||
fetch-tags: false
|
fetch-tags: false
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
- name: Ensure changed-scope base commit
|
||||||
|
uses: ./.github/actions/ensure-base-commit
|
||||||
|
with:
|
||||||
|
base-sha: ${{ github.event_name == 'push' && github.event.before || github.event.pull_request.base.sha }}
|
||||||
|
fetch-ref: ${{ github.event_name == 'push' && github.ref_name || github.event.pull_request.base.ref }}
|
||||||
|
|
||||||
- name: Detect changed scopes
|
- name: Detect changed scopes
|
||||||
id: scope
|
id: scope
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -75,6 +87,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
|
- name: Ensure secrets base commit (PR fast path)
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
|
uses: ./.github/actions/ensure-base-commit
|
||||||
|
with:
|
||||||
|
base-sha: ${{ github.event.pull_request.base.sha }}
|
||||||
|
fetch-ref: ${{ github.event.pull_request.base.ref }}
|
||||||
|
|
||||||
- name: Setup Node environment
|
- name: Setup Node environment
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user