Skip to content

Commit 005cb4a

Browse files
authored
Make Github Action recursively clone submodules (#630)
1 parent dda37b4 commit 005cb4a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/build-os.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
fetch-depth: 0
7575
fetch-tags: true
7676
filter: 'blob:none'
77+
submodules: recursive
7778

7879
# GET BASE IMAGE
7980

@@ -196,7 +197,7 @@ jobs:
196197
env:
197198
PALLET: ${{ steps.setup-precaching.outputs.pallet }}@${{ steps.setup-precaching.outputs.commit }}
198199
with:
199-
key: "container-images-${{ inputs.arch }}-pallet-${{ env.PALLET }}"
200+
key: 'container-images-${{ inputs.arch }}-pallet-${{ env.PALLET }}'
200201
path: ${{ steps.setup-precaching.outputs.path }}
201202

202203
- name: Pre-download container images
@@ -227,12 +228,12 @@ jobs:
227228
# save-always flag is broken: https://github.com/actions/cache/issues/1315 ; once that's
228229
# fixed, we can simplify this job a bit.
229230
- name: Save container image pre-cache to GitHub Actions cache
230-
if: "!steps.restore-precache.outputs.cache-hit"
231+
if: '!steps.restore-precache.outputs.cache-hit'
231232
uses: actions/cache/save@v4
232233
env:
233234
PALLET: ${{ steps.setup-precaching.outputs.pallet }}@${{ steps.setup-precaching.outputs.commit }}
234235
with:
235-
key: "container-images-${{ inputs.arch }}-pallet-${{ env.PALLET }}"
236+
key: 'container-images-${{ inputs.arch }}-pallet-${{ env.PALLET }}'
236237
path: ${{ steps.setup-precaching.outputs.path }}
237238

238239
# Note: the following step isn't strictly necessary, but it's nice to separate the GitHub
@@ -313,7 +314,7 @@ jobs:
313314

314315
- name: Determine output image name
315316
env:
316-
TAG_PREFIX: "software/v"
317+
TAG_PREFIX: 'software/v'
317318
run: |
318319
# Determine the version for the image name
319320
if [[ -n "${{ github.event.pull_request.head.sha }}" ]]; then

documentation/docs/community/contribute/tips-and-tricks.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ cd ~/PlanktoScope
7979
git config --global user.email "you@example.com"
8080
git config --global user.name "Your Name"
8181

82+
# To contribute, change the remote to PlanktoScope/PlanktoScope or your fork
83+
git remote set-url origin git@github.com:PlanktoScope/PlanktoScope.git
84+
8285
git fetch origin
8386
git checkout master
8487
```

0 commit comments

Comments
 (0)