@@ -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
0 commit comments