File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed
Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 11name : Release Latest Build
22
33on :
4- push :
5- branches :
6- - main
74 workflow_dispatch :
85
96jobs :
10- update-submodules :
11- runs-on : ubuntu-latest
12-
13- steps :
14- - name : Checkout main with submodules
15- uses : actions/checkout@v4
16- with :
17- submodules : true
18- fetch-depth : 0
19-
20- - name : Update orphan branches in submodules
21- run : |
22- git submodule foreach --recursive '
23- echo "Updating $name..."
24- git remote set-url origin $(git config --file $toplevel/.gitmodules submodule.$name.url)
25- git fetch origin
26- git checkout -B latest-release origin/latest-release
27- git pull origin latest-release || echo "Nothing to pull for $name"
28- '
29-
30- - name : Commit updated submodules
31- run : |
32- git config user.name "github-actions[bot]"
33- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
34- git add .
35- git commit -m "Update submodules from orphan branches" || echo "No changes"
36- git push origin main
37- env :
38- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39-
407 release :
418 runs-on : macos-latest
42- needs : [update-submodules]
439
4410 steps :
4511 - name : Checkout with submodules
You can’t perform that action at this time.
0 commit comments