- 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'

25
.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. # 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: on:
schedule: schedule:
# At 00:00 UTC every day. # At 00:10 UTC.
- cron: '00 00 * * *' - cron: '10 00 * * Mon,Thu'
repository_dispatch: repository_dispatch:
types: update-dependencies types: update-dependencies
defaults:
run:
shell: pwsh
jobs: jobs:
update-dotnet-preview: update-dependencies:
name: Update .NET nanoFramework dependencies name: nanoFramework
timeout-minutes: 15 uses: nanoframework/nf-tools/.github/workflows/update-dependencies.yml@main
runs-on: windows-latest secrets: inherit
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update dependencies
uses: nanoframework/nanodu@v1
with: with:
solutionsToCheck: 'nanoframework.System.Net.Sockets.TcpClient.sln' solutionsToCheck: 'nanoframework.System.Net.Sockets.TcpClient.sln'