Skip to content

Commit dc52862

Browse files
committed
add requirements to yaml parser
1 parent 4bc98a5 commit dc52862

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/package-updater.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
nuget_artifacts: ${{ github.runner.temp }}/artifacts
3131

3232
steps:
33+
- uses: actions/checkout@v3.5.0
34+
with:
35+
fetch-depth: 0
3336
- name: Configure git client
3437
run: |
3538
git config --global user.email "riedel@teco.edu"
@@ -40,6 +43,7 @@ jobs:
4043
Set-Service wuauserv -StartupType Manual
4144
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au
4245
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version
46+
foreach ($module in (Import-PowerShellDataFile -Path requirements.psd1).RequiredModules) {Install-Module -Name $module -Force}
4347
shell: powershell
4448
- name: System information
4549
run: |
@@ -51,9 +55,6 @@ jobs:
5155
' {0,-20} {1}' -f 'SCHEDULED BUILD:', ("${{ github.event_name }}" -eq 'schedule')
5256
' {0,-20} {1}' -f 'FORCED BUILD:' , ("${{ github.event_name }}" -eq 'workflow_dispatch')
5357
shell: powershell
54-
- uses: actions/checkout@v3.5.0
55-
with:
56-
fetch-depth: 0
5758
- name: Run package updater
5859
env:
5960
FORCED_PACKAGES: ${{ github.event.inputs.packages }}

requirements.psd1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@{
2+
ModuleVersion = '0.0.1'
3+
RequiredModules = @('powershell-yaml')
4+
}

0 commit comments

Comments
 (0)