From bb06dd9e877de9d2b4d69daa72bcb8715f0bd563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Sim=C3=B5es?= Date: Thu, 2 Jul 2020 09:36:50 +0100 Subject: [PATCH] Work CD-CI - Add github action to update dependencies. ***NO_CI*** --- .github/workflows/update-dependencies.yml | 50 +++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/update-dependencies.yml diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 0000000..5852f68 --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -0,0 +1,50 @@ +# Copyright (c) 2020 The nanoFramework project 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: + # At 00:00 UTC every day. + - cron: '00 00 * * *' + 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 + steps: + - name: Checkout + uses: actions/checkout@v2.3.1 + with: + path: main + - name: Checkout tools repo + uses: actions/checkout@v2.3.1 + with: + repository: nanoframework/nf-tools + path: tools + - name: Update dependencies + run: ./github-actions/update-nf-dependencies.ps1 + working-directory: tools + - name: Create Pull Request + uses: peter-evans/create-pull-request@v2.8.1 + 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 ' + branch: ${{ env.BRANCH_NAME }} + path: main