Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

Commit 9bc3289

Browse files
committed
Separate actions
1 parent 2ed90a3 commit 9bc3289

2 files changed

Lines changed: 49 additions & 34 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,20 @@ jobs:
1010
build:
1111
name: Build windows-latest
1212
runs-on: windows-latest
13-
permissions:
14-
contents: write
1513
steps:
16-
- name: Checkout Repository
17-
uses: actions/checkout@v6
18-
- name: Setup .NET Core
19-
uses: actions/setup-dotnet@v5
20-
with:
21-
dotnet-version: 10.0.*
22-
- name: Install Dependencies
23-
run: dotnet restore
24-
- name: Build
25-
run: dotnet build --configuration Release --no-restore
26-
- name: Test
27-
run: dotnet test --no-restore --verbosity normal
14+
- name: Checkout Repository
15+
uses: actions/checkout@v6
2816

29-
- name: Checkout OrchardCoreContrib.App Repository
30-
uses: actions/checkout@v6
31-
with:
32-
repository: OrchardCoreContrib/OrchardCoreContrib.App
33-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
34-
submodules: true
35-
- name: Update submodules
36-
run: |
37-
git submodule update --init --recursive
38-
git submodule update --recursive --remote
17+
- name: Setup .NET Core
18+
uses: actions/setup-dotnet@v5
19+
with:
20+
dotnet-version: 10.0.*
3921

40-
- name: Commit and push changes
41-
env:
42-
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
43-
run: |
44-
git config user.name "github-actions[bot]"
45-
git config user.email "github-actions[bot]@users.noreply.github.com"
46-
git add --all
47-
git commit -m "Update submodules" || echo "No changes to commit"
48-
git remote set-url origin https://x-access-token:${TOKEN}@github.com/OrchardCoreContrib/OrchardCoreContrib.App.git
49-
git push origin HEAD:main
22+
- name: Install Dependencies
23+
run: dotnet restore
24+
25+
- name: Build
26+
run: dotnet build --configuration Release --no-restore
27+
28+
- name: Test
29+
run: dotnet test --no-restore --verbosity normal
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update OrchardCoreContrib.App submodules
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
update-submodules:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout OrchardCoreContrib.App
14+
uses: actions/checkout@v6
15+
with:
16+
repository: OrchardCoreContrib/OrchardCoreContrib.App
17+
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
18+
submodules: true
19+
20+
- name: Update submodules
21+
run: |
22+
git submodule update --init --recursive
23+
git submodule update --recursive --remote
24+
25+
- name: Commit and push changes
26+
env:
27+
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
28+
run: |
29+
git config user.name "github-actions[bot]"
30+
git config user.email "github-actions[bot]@users.noreply.github.com"
31+
git add --all
32+
git diff --cached --quiet && exit 0
33+
git commit -m "Update submodules"
34+
git remote set-url origin https://x-access-token:${TOKEN}@github.com/OrchardCoreContrib/OrchardCoreContrib.App.git
35+
git push origin HEAD:main

0 commit comments

Comments
 (0)