镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/import-profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
# See https://github.com/googleapis/google-cloud-python/issues/12013
# and https://github.com/actions/checkout#checkout-head.
with:
fetch-depth: 2
fetch-depth: 0
filter: blob:none
persist-credentials: false
- name: Check for unit_test:all_packages label
id: check-label
Expand All @@ -54,7 +52,7 @@ jobs:
MAX_SHARDS: ${{ env.MAX_SHARDS }}
run: |
if [ -n "$TARGET_BRANCH" ]; then
git fetch --no-tags --quiet origin "$TARGET_BRANCH" --depth=1 || true
git fetch --no-tags --quiet origin "$TARGET_BRANCH" || true
fi
python3 ci/get_package_shards.py

Expand All @@ -72,7 +70,7 @@ jobs:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0 # Fetch git history to find changed packages / baseline
fetch-depth: 2
persist-credentials: false
- name: Setup Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
# See https://github.com/googleapis/google-cloud-python/issues/12013
# and https://github.com/actions/checkout#checkout-head.
with:
fetch-depth: 2
fetch-depth: 0
filter: blob:none
persist-credentials: false
- name: Check for unit_test:all_packages label
id: check-label
Expand All @@ -61,7 +59,7 @@ jobs:
TEST_ALL_PACKAGES: ${{ steps.check-label.outputs.is_full_run }}
run: |
if [ -n "$TARGET_BRANCH" ]; then
git fetch --no-tags --quiet origin "$TARGET_BRANCH" --deepen=200 || true
git fetch --no-tags --quiet origin "$TARGET_BRANCH" || true
fi
python3 ci/get_package_shards.py

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
fetch-depth: 2
fetch-depth: 0
filter: blob:none
persist-credentials: false
- name: Check for unit_test:all_packages label
id: check-label
Expand All @@ -77,7 +78,7 @@ jobs:
PACKAGE_WEIGHTS: ${{ env.PACKAGE_WEIGHTS }}
run: |
if [ -n "$TARGET_BRANCH" ]; then
git fetch --no-tags --quiet origin "$TARGET_BRANCH" --depth=1 || true
git fetch --no-tags --quiet origin "$TARGET_BRANCH" || true
fi
python3 ci/get_package_shards.py

Expand Down
Loading