Skip to content

🪲 [Fix]: Fix an issue that break the workflow when there is nothing to commit in BuildDocs #137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,18 @@ jobs:
Version: ${{ inputs.Version }}

- name: Commit all changes
continue-on-error: true
shell: pwsh
run: |
# Rename the gitignore file to .gitignore.bak
Rename-Item -Path '.gitignore' -NewName '.gitignore.bak' -Force
git add .
git commit -m 'Update documentation'
# Restore the gitignore file
Rename-Item -Path '.gitignore.bak' -NewName '.gitignore' -Force
- name: Lint documentation
uses: super-linter/super-linter/slim@latest
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,18 @@ jobs:
Version: ${{ inputs.Version }}

- name: Commit all changes
continue-on-error: true
shell: pwsh
run: |
# Rename the gitignore file to .gitignore.bak
Rename-Item -Path '.gitignore' -NewName '.gitignore.bak' -Force
git add .
git commit -m 'Update documentation'
# Restore the gitignore file
Rename-Item -Path '.gitignore.bak' -NewName '.gitignore' -Force
- name: Lint documentation
uses: super-linter/super-linter/slim@latest
env:
Expand Down
8 changes: 8 additions & 0 deletions tests/srcTestRepo/src/functions/public/completers.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Register-ArgumentCompleter -CommandName New-PSModuleTest -ParameterName Name -ScriptBlock {
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters)
$null = $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters

'Alice', 'Bob', 'Charlie' | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#SkipTest:Verbose:Just want to test that a function can have multiple skips.
function Test-PSModuleTest {
function Test-PSModuleTest {
<#
.SYNOPSIS
Performs tests on a module.
Expand All @@ -16,5 +15,4 @@ function Test-PSModuleTest {
[string] $Name
)
Write-Output "Hello, $Name!"
Write-Verbose 'Verbose message' -Verbose
}