From 120aebbaccb252d8354624e540ec36616a9fd418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lima?= Date: Tue, 16 Jul 2024 23:16:54 +0100 Subject: [PATCH] ci: add sparse checkout --- .github/workflows/pulumi-linter.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pulumi-linter.yaml b/.github/workflows/pulumi-linter.yaml index dcd6e13..872ebce 100644 --- a/.github/workflows/pulumi-linter.yaml +++ b/.github/workflows/pulumi-linter.yaml @@ -18,10 +18,7 @@ jobs: sparse-checkout: "services/pulumi" sparse-checkout-cone-mode: false - name: Move pulumi directory to root - run: | - mv services/pulumi ${GITHUB_WORKSPACE}/pulumi - rm -rf services/ - mv ${GITHUB_WORKSPACE}/tmp/pulumi/* . + run: git read-tree -um `git write-tree --prefix=services/pulumi/` - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: @@ -41,10 +38,7 @@ jobs: sparse-checkout: 'services/pulumi' sparse-checkout-cone-mode: false - name: Move pulumi directory to root - run: | - mv services/pulumi ${GITHUB_WORKSPACE}/pulumi - rm -rf services/ - mv ${GITHUB_WORKSPACE}/tmp/pulumi/* . + run: git read-tree -um `git write-tree --prefix=services/pulumi/` - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: