Module settings 01 #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 📚 Create External Help | |
on: | |
pull_request: | |
push: | |
jobs: | |
package_help: | |
runs-on: windows-latest | |
steps: | |
- name: ✅ Checkout Repository | |
uses: actions/checkout@v4 | |
- name: 📁 Display the Path | |
shell: pwsh | |
run: echo ${env:PATH} | |
- name: 🔢 Display the Version | |
shell: pwsh | |
run: $PSVersionTable | |
- name: 📖 Create and Package External PowerShell Help | |
shell: pwsh | |
run: | | |
Install-Module -Name PlatyPS -Scope CurrentUser -Force | |
Import-Module -Name PlatyPS | |
Copy-Item ".\src\Artifacts\en-US\PSPreworkout-help.xml" ".\Help\en-US" | |
$params = @{ | |
CabFilesFolder = ".\Help\en-US" | |
LandingPagePath = ".\docs\PSPreworkout.md" | |
OutputFolder = ".\Help\en-US" | |
} | |
New-ExternalHelpCab @params | |
# git-auto-commit-action only runs on Linux-based platforms. | |
- name: 💾 Commit Changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 'Create and package external help.' |