We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e9e58 commit 2dbc6a8Copy full SHA for 2dbc6a8
Github/Actions/PipeScriptAction.ps1
@@ -120,6 +120,12 @@ git config --global user.name $UserName
120
121
if (-not $env:GITHUB_WORKSPACE) { throw "No GitHub workspace" }
122
123
+$branchName = git rev-parse --abrev-ref HEAD
124
+if (-not $branchName) {
125
+
126
+ return
127
+}
128
129
git pull | Out-Host
130
131
$PipeScriptStart = [DateTime]::Now
action.yml
@@ -188,6 +188,12 @@ runs:
188
189
190
191
+ $branchName = git rev-parse --abrev-ref HEAD
192
+ if (-not $branchName) {
193
194
195
+ }
196
197
198
199
0 commit comments