From 514fd5e2f73e3766003649f2ef7fd43afa87c0cf Mon Sep 17 00:00:00 2001 From: Roman Edirisinghe Date: Wed, 13 Nov 2024 16:03:10 -0500 Subject: [PATCH] CI: add develop branch back, checkout specific files/folders only --- .github/workflows/ci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4f4185c..f94bf529 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + fetch-depth: 0 ref: api/dev sparse-checkout: | .github/workflows/** @@ -26,10 +27,16 @@ jobs: src/pages/api/**.njk src/_includes/modules/api-config.njk sparse-checkout-cone-mode: false - # - name: Reset develop branch - # run: | - # git fetch origin develop:develop - # git reset --hard develop + - name: Reset develop branch + run: | + git fetch origin develop:develop + git reset --hard develop + git checkout develop -- \ + .github/workflows/** \ + src/_data/**.js \ + src/_data/**.yml \ + src/pages/api/**.njk \ + src/_includes/modules/api-config.njk - name: set datestamp id: datestamp run: |