Work CI-CD
- Add github action to update nugets. ***NO_CI***
This commit is contained in:
Родитель
25f45e70d8
Коммит
d8372ac925
|
@ -0,0 +1,52 @@
|
|||
# Copyright (c) .NET Foundation and Contributors
|
||||
# See LICENSE file in the project root for full license information.
|
||||
|
||||
# This workflow will periodically check .NET nanoFramework dependencies and updates them in the repository it's running.
|
||||
|
||||
name: Daily update dependencies
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Update daily at 00:00 UTC
|
||||
- cron: '0 0 * * *'
|
||||
repository_dispatch:
|
||||
types: update-dependencies
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: pwsh
|
||||
|
||||
jobs:
|
||||
update-dotnet-preview:
|
||||
name: Update .NET nanoFramework dependencies
|
||||
timeout-minutes: 60 # Non default as IoT devices has lots of solutions to update!
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: main
|
||||
- name: Checkout tools repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: nanoframework/nf-tools
|
||||
path: tools
|
||||
- name: Update dependencies
|
||||
run: ./github-actions/update-nf-dependencies.ps1 prerelease devices
|
||||
working-directory: tools
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
if: env.CREATE_PR == 'true'
|
||||
with:
|
||||
title: '${{ env.PR_TITLE }}'
|
||||
body: |
|
||||
${{ env.PR_MESSAGE }}
|
||||
|
||||
[version update]
|
||||
|
||||
### :warning: This is an automated update. :warning:
|
||||
committer: 'nfbot <dependencybot@nanoframework.net>'
|
||||
branch: ${{ env.BRANCH_NAME }}
|
||||
path: main
|
||||
labels: |
|
||||
Type: dependencies
|
Загрузка…
Ссылка в новой задаче