Skip to content

Commit fb44d95

Browse files
authored
Work CI-CD
- Update action to tuse template. - Pass secrets to template. [skip_ci]
1 parent 22f8584 commit fb44d95

File tree

2 files changed

+27
-20
lines changed

2 files changed

+27
-20
lines changed

.github/workflows/pr-checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (c) .NET Foundation and Contributors
2+
# See LICENSE file in the project root for full license information.
3+
4+
name: PR Checks
5+
6+
on:
7+
pull_request:
8+
9+
jobs:
10+
check_package_lock:
11+
name: nanoFramework
12+
uses: nanoframework/nf-tools/.github/workflows/check-package-lock.yml@main
13+
check_nuget_latest:
14+
name: nanoFramework
15+
uses: nanoframework/nf-tools/.github/workflows/check-packages-updated.yml@main
16+
secrets: inherit
17+
with:
18+
solution: 'nanoframework.System.Net.Sockets.TcpClient.sln'

.github/workflows/update-dependencies.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,19 @@
33

44
# This workflow will periodically check .NET nanoFramework dependencies and updates them in the repository it's running.
55

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

88
on:
99
schedule:
10-
# At 00:00 UTC every day.
11-
- cron: '00 00 * * *'
10+
# At 00:10 UTC.
11+
- cron: '10 00 * * Mon,Thu'
1212
repository_dispatch:
1313
types: update-dependencies
1414

15-
defaults:
16-
run:
17-
shell: pwsh
18-
1915
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-
steps:
27-
- name: Checkout
28-
uses: actions/checkout@v2
29-
- name: Update dependencies
30-
uses: nanoframework/nanodu@v1
31-
with:
32-
solutionsToCheck: 'nanoframework.System.Net.Sockets.TcpClient.sln'
16+
update-dependencies:
17+
name: nanoFramework
18+
uses: nanoframework/nf-tools/.github/workflows/update-dependencies.yml@main
19+
secrets: inherit
20+
with:
21+
solutionsToCheck: 'nanoframework.System.Net.Sockets.TcpClient.sln'

0 commit comments

Comments
 (0)