Skip to content

Commit 5276490

Browse files
committed
ci: add an action to update submodules
1 parent 868be01 commit 5276490

2 files changed

Lines changed: 89 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Update submodules
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * SUN' # Sunday midnight
6+
workflow_dispatch: # Or manually
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update_submodules:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
submodules: 'recursive'
19+
fetch-depth: 0
20+
- name: Update submodules
21+
uses: igrr/github-actions/update_submodule_versions@feature/update_submodule_versions
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
git-author-name: ${{ secrets.SUBMODULE_UPDATE_AUTHOR_NAME }}
25+
git-author-email: ${{ secrets.SUBMODULE_UPDATE_AUTHOR_EMAIL }}

.gitmodules

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,100 @@
11
[submodule "libsodium/libsodium"]
22
path = libsodium/libsodium
33
url = https://github.com/jedisct1/libsodium.git
4+
# libsodium doesn't tag new releases since 0.18.0, 'stable' branch is considered
5+
# to be the latest stable release. See:
6+
# https://github.com/jedisct1/libsodium/issues/1041#issuecomment-799812417
7+
# However since idf_component.yml had the version already set to 0.20.0,
8+
# we can't update the version automatically (it would be set it back to 0.18.0~n)
9+
# autoupdate = false
410
[submodule "cbor/tinycbor"]
511
path = cbor/tinycbor
612
url = https://github.com/intel/tinycbor.git
13+
autoupdate = true
14+
autoupdate-branch = main
15+
autoupdate-tag-glob = v[0-9]*.[0-9]*.[0-9]*
16+
autoupdate-manifest = cbor/idf_component.yml
17+
autoupdate-ver-regex = v([0-9]+).([0-9]+).([0-9]+)
718
[submodule "nghttp/nghttp2"]
819
path = nghttp/nghttp2
920
url = https://github.com/nghttp2/nghttp2.git
21+
autoupdate = true
22+
autoupdate-branch = master
23+
autoupdate-tag-glob = v[0-9]*.[0-9]*.[0-9]*
24+
autoupdate-manifest = nghttp/idf_component.yml
25+
autoupdate-ver-regex = v([0-9]+).([0-9]+).([0-9]+)
1026
[submodule "expat/expat"]
1127
path = expat/expat
1228
url = https://github.com/libexpat/libexpat.git
29+
autoupdate = true
30+
autoupdate-branch = master
31+
autoupdate-tag-glob = R_[0-9]*_[0-9]*_[0-9]*
32+
autoupdate-manifest = expat/idf_component.yml
33+
autoupdate-ver-regex = R_([0-9]+)_([0-9]+)_([0-9]+)
1334
[submodule "coap/libcoap"]
1435
path = coap/libcoap
1536
url = https://github.com/obgm/libcoap.git
37+
autoupdate = true
38+
autoupdate-branch = develop
39+
autoupdate-tag-glob = v[0-9]*.[0-9]*.[0-9]*
40+
autoupdate-include-lightweight = true
41+
autoupdate-manifest = coap/idf_component.yml
42+
autoupdate-ver-regex = v([0-9]+).([0-9]+).([0-9]+)
1643
[submodule "usb/usb_host_uvc/libuvc"]
1744
path = usb/usb_host_uvc/libuvc
1845
url = https://github.com/libuvc/libuvc.git
46+
autoupdate = true
47+
autoupdate-branch = master
48+
autoupdate-tag-glob = v[0-9]*.[0-9]*.[0-9]*
49+
autoupdate-include-lightweight = true
50+
# Not updating the manifest automatically,
51+
# since the component version is ahead of the upstream version
1952
[submodule "eigen/eigen"]
2053
path = eigen/eigen
2154
url = https://gitlab.com/libeigen/eigen.git
55+
autoupdate = true
56+
autoupdate-branch = 3.4
57+
autoupdate-tag-glob = [0-9]*.[0-9]*.[0-9]*
58+
autoupdate-include-lightweight = true
59+
autoupdate-manifest = eigen/idf_component.yml
60+
autoupdate-ver-regex = ([0-9]+).([0-9]+).([0-9]+)
2261
[submodule "fmt/fmt"]
2362
path = fmt/fmt
2463
url = https://github.com/fmtlib/fmt.git
64+
autoupdate = true
65+
autoupdate-branch = master
66+
autoupdate-tag-glob = [0-9]*.[0-9]*.[0-9]*
67+
autoupdate-include-lightweight = true
68+
autoupdate-manifest = fmt/idf_component.yml
69+
autoupdate-ver-regex = ([0-9]+).([0-9]+).([0-9]+)
2570
[submodule "esp_delta_ota/detools"]
2671
path = esp_delta_ota/detools
2772
url = https://github.com/eerimoq/detools.git
73+
# not updating automatically, as this is not an upstream repo
74+
# but a tool used by the component
2875
[submodule "quirc/quirc"]
2976
path = quirc/quirc
3077
url = https://github.com/dlbeer/quirc.git
78+
autoupdate = true
79+
autoupdate-branch = master
80+
autoupdate-tag-glob = v[0-9]*.[0-9]*
81+
autoupdate-include-lightweight = true
82+
autoupdate-manifest = quirc/idf_component.yml
83+
autoupdate-ver-regex = v([0-9]+).([0-9]+)
3184
[submodule "zlib/zlib"]
3285
path = zlib/zlib
3386
url = https://github.com/madler/zlib.git
87+
autoupdate = true
88+
autoupdate-branch = master
89+
autoupdate-tag-glob = v[0-9]*.[0-9]*.[0-9]*
90+
autoupdate-manifest = zlib/idf_component.yml
91+
autoupdate-ver-regex = v([0-9]+).([0-9]+).([0-9]+)
3492
[submodule "libpng/libpng"]
3593
path = libpng/libpng
3694
url = https://github.com/glennrp/libpng.git
95+
autoupdate = true
96+
autoupdate-branch = libpng16
97+
autoupdate-include-lightweight = true
98+
autoupdate-tag-glob = v[0-9]*.[0-9]*.[0-9]*
99+
autoupdate-manifest = libpng/idf_component.yml
100+
autoupdate-ver-regex = v([0-9]+).([0-9]+).([0-9]+)

0 commit comments

Comments
 (0)