From 452b583cbf46a6c9384a557ab76d2b7f39f71ad2 Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Tue, 14 Jan 2025 13:37:01 -0500 Subject: [PATCH] Update GitHub Actions to use blobless clones (#3318) --- .github/workflows/docs.yml | 6 ++++++ .github/workflows/push-to-develop.yml | 1 + .github/workflows/push-to-main.yml | 1 + .github/workflows/validate_yaml_files.yml | 6 +++++- .github/workflows/workflow.yml | 4 ++++ CHANGELOG.md | 1 + 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3e4740e794dc..1dae02b37a48 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -17,6 +17,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: blob:none - name: Build and Deploy Docs uses: ./.github/actions/deploy-ford-docs @@ -34,6 +37,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: blob:none - name: Build and Deploy Dev Docs uses: ./.github/actions/deploy-ford-docs diff --git a/.github/workflows/push-to-develop.yml b/.github/workflows/push-to-develop.yml index 449820dd235a..59f89da2710d 100644 --- a/.github/workflows/push-to-develop.yml +++ b/.github/workflows/push-to-develop.yml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + filter: blob:none - name: Run the action uses: devops-infra/action-pull-request@v0.5.5 with: diff --git a/.github/workflows/push-to-main.yml b/.github/workflows/push-to-main.yml index 6c8a112a92e9..e558b7db0ce2 100644 --- a/.github/workflows/push-to-main.yml +++ b/.github/workflows/push-to-main.yml @@ -14,6 +14,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + filter: blob:none - name: Run the action uses: devops-infra/action-pull-request@v0.5.5 with: diff --git a/.github/workflows/validate_yaml_files.yml b/.github/workflows/validate_yaml_files.yml index 449db6e674da..4b4c11672284 100644 --- a/.github/workflows/validate_yaml_files.yml +++ b/.github/workflows/validate_yaml_files.yml @@ -15,7 +15,11 @@ jobs: validate-YAML: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: blob:none - id: yaml-lint name: yaml-lint uses: ibiqlik/action-yamllint@v3 diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e5f266150bc7..d0194d858c52 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -19,6 +19,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + filter: blob:none - name: Build and Deploy Docs uses: ./.github/actions/deploy-ford-docs @@ -102,6 +105,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 1 + filter: blob:none - name: Set all directories as git safe run: | git config --global --add safe.directory '*' diff --git a/CHANGELOG.md b/CHANGELOG.md index b62e2990fc25..d2fdf3ce41b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Changed MAPL_ESMFRegridder to require the dstMaskValues to be added as grid attribute to use fixed masking, fixes UFS issue - Increased formatting width of time index in ExtData2G diagnostic print +- Updated GitHub checkout action to use blobless clones ### Fixed