We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b27607f commit c52e739Copy full SHA for c52e739
.github/workflows/main.yml
@@ -25,7 +25,9 @@ jobs:
25
run: |
26
# cancel early, if not build commit
27
$strVal ='${{ github.event.commits[0].message }}'
28
- if($strVal -clike '*#GITBUILD*')
+ # Convert commit message to a single line if multiline
29
+ $singleLineStrVal = $strVal -replace "`r`n", " " -replace "`n", " "
30
+ if($singleLineStrVal -match '#GITBUILD')
31
{
32
Write-Host 'True'
33
} else {
0 commit comments