- Split github actions to update dependencies.

***NO_CI***
This commit is contained in:
josesimoes 2022-03-30 17:28:36 +01:00
Родитель 5bceb52dc1
Коммит 398cdbaec5
4 изменённых файлов: 51 добавлений и 12 удалений

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

@ -35,6 +35,7 @@ jobs:
solutionsToCheck: |
NumberHelper.sln
System.Buffers.Binary.BinaryPrimitives.sln
Multiplexing.sln
System.Device.Model.sln
System.Diagnostics.Stopwatch.sln
System.Drawing.sln

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

@ -3,13 +3,12 @@
# This workflow will periodically check .NET nanoFramework dependencies and updates them in the repository it's running.
name: Update dependencies (round 2)
name: Update dependencies (round 1)
on:
schedule:
# At 00:30 UTC every day.
# Set 30 min apart from round 1 to allow enough time for any changes to propagate.
- cron: '30 00 * * *'
# At 15:00 UTC every day.
- cron: '15 00 * * *'
repository_dispatch:
types: update-dependencies
workflow_dispatch:
@ -33,7 +32,7 @@ jobs:
- name: Update dependencies
uses: nanoframework/nanodu@v1
with:
solutionsToCheck: '*.sln'
solutionsToCheck: |
ShiftRegister.sln
workingDirectory: '${{ github.workspace }}/devices'
exclusionList: 'Ft6xx6x,NumberHelper,System.Buffers.Binary.BinaryPrimitives,System.Device.Model,System.Diagnostics.Stopwatch,System.Drawing,System.Numerics,WeatherHelper'
branchToPr: 'develop'

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

@ -2,15 +2,14 @@
# 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.
# Second round, because of dependencies from other IoT bindings.
name: Update dependencies (round 3)
name: Update dependencies (round 2)
on:
schedule:
# At 02:00 UTC every day.
# Set 2 hours apart from round 2 to allow enough time for any changes to propagate.
- cron: '00 02 * * *'
# At 00:30 UTC every day.
# Set 30 min apart from round 1 to allow enough time for any changes to propagate.
- cron: '30 00 * * *'
repository_dispatch:
types: update-dependencies
workflow_dispatch:
@ -34,6 +33,7 @@ jobs:
- name: Update dependencies
uses: nanoframework/nanodu@v1
with:
solutionsToCheck: 'Ft6xx6x'
solutionsToCheck: '*.sln'
workingDirectory: '${{ github.workspace }}/devices'
exclusionList: 'Ft6xx6x,NumberHelper,System.Buffers.Binary.BinaryPrimitives,System.Device.Model,System.Diagnostics.Stopwatch,System.Drawing,System.Numerics,WeatherHelper'
branchToPr: 'develop'

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

@ -0,0 +1,39 @@
# 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.
# Second round, because of dependencies from other IoT bindings.
name: Update dependencies (round 3)
on:
schedule:
# At 02:00 UTC every day.
# Set 2 hours apart from round 2 to allow enough time for any changes to propagate.
- cron: '00 02 * * *'
repository_dispatch:
types: update-dependencies
workflow_dispatch:
defaults:
run:
shell: pwsh
jobs:
update-nuget-dependencies:
name: Update .NET nanoFramework dependencies
timeout-minutes: 180 # Non default as IoT devices has lots of solutions to update!
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Update dependencies
uses: nanoframework/nanodu@v1
with:
solutionsToCheck: 'Ft6xx6x'
workingDirectory: '${{ github.workspace }}/devices'
branchToPr: 'develop'