Skip to content

Commit

Permalink
CI: add develop branch back, checkout specific files/folders only
Browse files Browse the repository at this point in the history
  • Loading branch information
rediris committed Nov 13, 2024
1 parent 30d0797 commit 514fd5e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: api/dev
sparse-checkout: |
.github/workflows/**
Expand All @@ -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: |
Expand Down

0 comments on commit 514fd5e

Please sign in to comment.