Skip to content

Commit 984b61e

Browse files
Updating action (fixing warning message) [skip ci]
1 parent a8a06e0 commit 984b61e

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

GitHub/Actions/EZOutAction.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ git config --global user.name $UserName
103103
$branchName = git rev-parse --abrev-ref HEAD
104104
# If we were not, return.
105105
if (-not $branchName) {
106-
"::notice title=ModuleLoaded::$actionModuleName Loaded from Path - $($actionModulePath)" | Out-Host
106+
"::warning::Not on a branch" | Out-Host
107107
return
108108
}
109109

action.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ runs:
4949
id: EZOutAction
5050
shell: pwsh
5151
env:
52-
UserName: ${{inputs.UserName}}
5352
CommitMessage: ${{inputs.CommitMessage}}
5453
ModuleName: ${{inputs.ModuleName}}
54+
UserName: ${{inputs.UserName}}
5555
EZOutScript: ${{inputs.EZOutScript}}
56-
SkipEZOutPS1: ${{inputs.SkipEZOutPS1}}
5756
UserEmail: ${{inputs.UserEmail}}
57+
SkipEZOutPS1: ${{inputs.SkipEZOutPS1}}
5858
run: |
5959
$Parameters = @{}
6060
$Parameters.EZOutScript = ${env:EZOutScript}
@@ -70,8 +70,7 @@ runs:
7070
}
7171
}
7272
Write-Host "::debug:: EZOutAction $(@(foreach ($p in $Parameters.GetEnumerator()) {'-' + $p.Key + ' ' + $p.Value}) -join ' ')"
73-
& {
74-
<#
73+
& {<#
7574
.Synopsis
7675
GitHub Action for EZOut
7776
.Description
@@ -176,7 +175,7 @@ runs:
176175
$branchName = git rev-parse --abrev-ref HEAD
177176
# If we were not, return.
178177
if (-not $branchName) {
179-
"::notice title=ModuleLoaded::$actionModuleName Loaded from Path - $($actionModulePath)" | Out-Host
178+
"::warning::Not on a branch" | Out-Host
180179
return
181180
}
182181
@@ -312,6 +311,5 @@ runs:
312311
}
313312
314313
#endregion Actual Action
315-
316314
} @Parameters
317315

0 commit comments

Comments
 (0)