- Update action to tuse template.
- Pass secrets to template.

[skip_ci]
This commit is contained in:
José Simões 2022-12-27 18:04:53 +00:00 коммит произвёл GitHub
Родитель 22f85848af
Коммит fb44d95dfe
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 27 добавлений и 20 удалений

18
.github/workflows/pr-checks.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,18 @@
# Copyright (c) .NET Foundation and Contributors
# See LICENSE file in the project root for full license information.
name: PR Checks
on:
pull_request:
jobs:
check_package_lock:
name: nanoFramework
uses: nanoframework/nf-tools/.github/workflows/check-package-lock.yml@main
check_nuget_latest:
name: nanoFramework
uses: nanoframework/nf-tools/.github/workflows/check-packages-updated.yml@main
secrets: inherit
with:
solution: 'nanoframework.System.Net.Sockets.TcpClient.sln'

29
.github/workflows/update-dependencies.yml поставляемый
Просмотреть файл

@ -3,30 +3,19 @@
# This workflow will periodically check .NET nanoFramework dependencies and updates them in the repository it's running.
name: Daily update dependencies
name: Update .NET nanoFramework dependencies
on:
schedule:
# At 00:00 UTC every day.
- cron: '00 00 * * *'
# At 00:10 UTC.
- cron: '10 00 * * Mon,Thu'
repository_dispatch:
types: update-dependencies
defaults:
run:
shell: pwsh
jobs:
update-dotnet-preview:
name: Update .NET nanoFramework dependencies
timeout-minutes: 15
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update dependencies
uses: nanoframework/nanodu@v1
with:
solutionsToCheck: 'nanoframework.System.Net.Sockets.TcpClient.sln'
update-dependencies:
name: nanoFramework
uses: nanoframework/nf-tools/.github/workflows/update-dependencies.yml@main
secrets: inherit
with:
solutionsToCheck: 'nanoframework.System.Net.Sockets.TcpClient.sln'