Skip to content

Commit f26f334

Browse files
committed
Work CI-CD
- Replace update dependencies action with reusable template.
1 parent 802c8cf commit f26f334

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# See LICENSE file in the project root for full license information.
33

44
# This workflow will periodically check .NET nanoFramework dependencies and updates them in the repository it's running.
5+
# Can also be triggered by a repository dispatch event.
56

6-
name: Daily update dependencies
7+
name: Update .NET nanoFramework dependencies
78

89
on:
910
schedule:
@@ -12,28 +13,9 @@ on:
1213
repository_dispatch:
1314
types: update-dependencies
1415

15-
defaults:
16-
run:
17-
shell: pwsh
18-
1916
jobs:
20-
update-dotnet-preview:
21-
name: Update .NET nanoFramework dependencies
22-
timeout-minutes: 15
23-
runs-on: windows-latest
24-
env:
25-
GITHUB_TOKEN: ${{ github.token }}
26-
SOLUTION: 'nanoFramework.Networking.Sntp.sln'
27-
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v3
30-
- uses: actions/cache@v3
31-
with:
32-
path: ~/.nuget/packages
33-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
34-
restore-keys: |
35-
${{ runner.os }}-nuget-
36-
- name: Update dependencies
37-
uses: nanoframework/nanodu@v1
38-
with:
39-
solutionsToCheck: ${{ env.SOLUTION }}
17+
update-dependencies:
18+
name: nanoFramework
19+
uses: nanoframework/nf-tools/.github/workflows/update-dependencies.yml@main
20+
with:
21+
solutionsToCheck: 'nanoFramework.Networking.Sntp.sln'

0 commit comments

Comments
 (0)