Skip to content

Check Dependencies #667

Check Dependencies

Check Dependencies #667

# 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 main
run: |
git config user.name github-actions
git config user.email [email protected]
git merge origin/main --allow-unrelated-histories
# Setup .NET Core SDK
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
# Restore workload
- name: Restore workload
run: dotnet workload restore
# Run update depencies script
- name: Bump dependencies
run: ./bump-dependencies.ps1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}