From 0f252eddd857573e482894c4f36a32d36fbe9613 Mon Sep 17 00:00:00 2001 From: Merill Fernando Date: Sun, 26 May 2024 20:05:16 +1000 Subject: [PATCH] Added loading module --- .github/workflows/deploy-site.yaml | 5 ++--- build/Update-CommandReference.ps1 | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-site.yaml b/.github/workflows/deploy-site.yaml index e10078f..8774e72 100644 --- a/.github/workflows/deploy-site.yaml +++ b/.github/workflows/deploy-site.yaml @@ -14,6 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Update command reference run: ./build/Update-CommandReference.ps1 shell: pwsh @@ -26,9 +28,6 @@ jobs: run: working-directory: ./website/ steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - uses: actions/setup-node@v4 with: node-version: 18 diff --git a/build/Update-CommandReference.ps1 b/build/Update-CommandReference.ps1 index 05a116a..46e4015 100644 --- a/build/Update-CommandReference.ps1 +++ b/build/Update-CommandReference.ps1 @@ -8,6 +8,8 @@ if (-not (Get-Module PlatyPS -ListAvailable)) { Install-Module PlatyPS -Scope Cu Import-Module Alt3.Docusaurus.Powershell Import-Module PlatyPS +Import-Module ./src/MSIdentityTools.psd1 -Force + # Generate the command reference markdown $commandsIndexFile = "./website/docs/commands/readme.md" $readmeContent = Get-Content $commandsIndexFile # Backup the readme.md since it will be deleted by New-DocusaurusHelp