From cb5a730f5f56e8f2713cc6d424f6dfaa1f01f809 Mon Sep 17 00:00:00 2001 From: Miroslav Jonas Date: Thu, 10 Apr 2025 11:38:24 +0200 Subject: [PATCH] feat: add filter to speed up checkout action --- .github/workflows/nx-cloud-main.yml | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nx-cloud-main.yml b/.github/workflows/nx-cloud-main.yml index 3122ae0..cd195bd 100644 --- a/.github/workflows/nx-cloud-main.yml +++ b/.github/workflows/nx-cloud-main.yml @@ -100,6 +100,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} # We need to fetch all branches and commits so that Nx affected has a base to compare against. fetch-depth: 0 + filter: "tree:0" - uses: actions/checkout@v4 name: Checkout [Default Branch] @@ -107,6 +108,7 @@ jobs: with: # We need to fetch all branches and commits so that Nx affected has a base to compare against. fetch-depth: 0 + filter: "tree:0" - name: Derive appropriate SHAs for base and head for `nx affected` commands uses: nrwl/nx-set-shas@v4 diff --git a/package.json b/package.json index 4e20ff0..ad0499f 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "private": true, - "version": "0.15.0", + "version": "0.16.0", "description": "This package.json is here purely to control the version of the Action, in combination with https://github.com/JamesHenry/publish-shell-action" }