- Migrate update dependencies to github action.

***NO_CI***
This commit is contained in:
josesimoes 2022-03-14 17:09:54 +00:00
Родитель 3cf6a8dffe
Коммит a0ad77eba3
1 изменённых файлов: 10 добавлений и 25 удалений

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

@ -9,6 +9,7 @@ on:
schedule:
# At 00:00 UTC every day.
- cron: '00 00 * * *'
workflow_dispatch:
repository_dispatch:
types: update-dependencies
@ -17,36 +18,20 @@ defaults:
shell: pwsh
jobs:
update-dotnet-preview:
update-nuget-dependencies:
name: Update .NET nanoFramework dependencies
timeout-minutes: 15
timeout-minutes: 180
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ github.token }}
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
path: main
- name: Update dependencies
run: ./github-actions/update-nf-dependencies.ps1 prerelease '' 'amqp-nanoFramework.sln'
working-directory: tools
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
if: env.CREATE_PR == 'true'
uses: nanoframework/nanodu@v1
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
solutionsToCheck: 'amqp-nanoFramework.sln'
workingDirectory: main
branchToPr: ${{ env.BRANCH_NAME }}