-
-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (37 loc) · 1.19 KB
/
check-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Update all depencies each days if needed
name: Check Dependencies
# Controls when the action will run.
on:
# Triggers the workflow at 02:00 each days
schedule:
- cron: '0 2 * * *'
# allow to launch the job manually
workflow_dispatch:
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checkout the branch fix/dependencies with the PAT
- uses: actions/checkout@v2
with:
ref: fix/dependencies
token: ${{ secrets.PAT }}
fetch-depth: 0
- name: Merge master
run: |
git config user.name github-actions
git config user.email [email protected]
git merge origin/master --allow-unrelated-histories
# Setup .NET Core SDK
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9
# Run update depencies script
- name: Update dependencies
run: ./update-dependencies.ps1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}