Skip to content

Commit 03c04e7

Browse files
committed
actions: Try checkout v2.2.0
This version is supposed to > Fetch all history for all tags and branches when fetch-depth=0 We leave the tags fetch in place so that actions _in cloned repos_ work. Cloned repos' tags do not necessarily match adafruit/circuitpython, but we want version reporting to be able to use adafruit/circuitpython tags when they are most relevant according to "git describe"'s heuristics. Submodules are different, as they always point to the repo specified in .gitmodules, so they don't need special handling to get the most relevant tags.
1 parent 9285252 commit 03c04e7

File tree

2 files changed

+6
-22
lines changed

2 files changed

+6
-22
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@ jobs:
1616
env:
1717
GITHUB_CONTEXT: ${{ toJson(github) }}
1818
run: echo "$GITHUB_CONTEXT"
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v2.2.0
2020
with:
2121
submodules: true
2222
fetch-depth: 0
2323
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
24-
- run: git submodule sync
25-
- run: git submodule foreach git remote -v
26-
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
2724
- name: CircuitPython version
2825
run: git describe --dirty --tags
2926
- name: Set up Python 3.8
@@ -110,14 +107,11 @@ jobs:
110107
gcc --version
111108
python3 --version
112109
msgfmt --version
113-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v2.2.0
114111
with:
115112
submodules: true
116113
fetch-depth: 0
117114
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
118-
- run: git submodule sync
119-
- run: git submodule foreach git remote -v
120-
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
121115
- name: CircuitPython version
122116
run: git describe --dirty --tags
123117
- name: Build mpy-cross
@@ -286,14 +280,11 @@ jobs:
286280
gcc --version
287281
arm-none-eabi-gcc --version
288282
python3 --version
289-
- uses: actions/checkout@v2
283+
- uses: actions/checkout@v2.2.0
290284
with:
291285
submodules: true
292286
fetch-depth: 0
293287
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
294-
- run: git submodule sync
295-
- run: git submodule foreach git remote -v
296-
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
297288
- name: mpy-cross
298289
run: make -C mpy-cross -j2
299290
- name: build
@@ -337,14 +328,11 @@ jobs:
337328
gcc --version
338329
riscv64-unknown-elf-gcc --version
339330
python3 --version
340-
- uses: actions/checkout@v2
331+
- uses: actions/checkout@v2.2.0
341332
with:
342333
submodules: true
343334
fetch-depth: 0
344335
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
345-
- run: git submodule sync
346-
- run: git submodule foreach git remote -v
347-
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
348336
- name: mpy-cross
349337
run: make -C mpy-cross -j2
350338
- name: build
@@ -377,14 +365,11 @@ jobs:
377365
uses: actions/setup-python@v1
378366
with:
379367
python-version: 3.8
380-
- uses: actions/checkout@v2
368+
- uses: actions/checkout@v2.2.0
381369
with:
382370
submodules: true
383371
fetch-depth: 0
384372
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
385-
- run: git submodule sync
386-
- run: git submodule foreach git remote -v
387-
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
388373
- name: CircuitPython version
389374
run: git describe --dirty --tags
390375
- uses: actions/cache@v1

.github/workflows/create_website_pr.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ jobs:
2323
run: |
2424
gcc --version
2525
python3 --version
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v2.2.0
2727
with:
2828
submodules: true
2929
fetch-depth: 0
3030
- run: git fetch --recurse-submodules=no https://github.com/adafruit/circuitpython refs/tags/*:refs/tags/*
31-
- run: git submodule foreach git fetch --recurse-submodules=no origin +refs/tags/*:refs/tags/*
3231
- name: CircuitPython version
3332
run: git describe --dirty --tags
3433
- name: Website

0 commit comments

Comments
 (0)