Skip to content

Commit 002804c

Browse files
committed
Only Dispatch Workflow For RLB, with no Submodule update
1 parent 9ad93c3 commit 002804c

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,11 @@
11
name: Release Latest Build
22

33
on:
4-
push:
5-
branches:
6-
- main
74
workflow_dispatch:
85

96
jobs:
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

0 commit comments

Comments
 (0)