-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathAutoUpgrade.yml
More file actions
30 lines (27 loc) · 759 Bytes
/
AutoUpgrade.yml
File metadata and controls
30 lines (27 loc) · 759 Bytes
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
trigger: none
pr: none
schedules:
- cron: '0 0 * * *'
displayName: Daily midnight build
branches:
include:
- master
always: true
pool:
vmImage: ubuntu-latest
steps:
- task: Bash@3
displayName: 'Upgrade packages'
inputs:
targetType: 'inline'
script: |
for i in $(find . -type d -name 'Pulumi.FSharp.*' | grep -v 'Myriad\|Test\|Common')
do
PACKAGE=$(awk -F/ '{{split($2,a,"FSharp."); print a[1]a[2]}}' <<< $i)
dotnet add $i package Pulumi.FSharp > /dev/null
dotnet add $i package $PACKAGE > /dev/null
done
git config --global user.name "UnoSD"
git config --global user.email "1582987+UnoSD@users.noreply.github.com"
git add .
git commit -m "Upgrade NuGet packages"