Update test.yml

This commit is contained in:
cdozdil
2025-01-21 14:13:44 +03:00
committed by GitHub
parent bf0564f0f6
commit 938d2a8d3f
+5 -1
View File
@@ -135,9 +135,13 @@ jobs:
shell: powershell
run: |
Write-Output "Fetching commits from the last 24 hours..."
$location = Get-Location
Write-Output "$location"
# Get commit messages excluding .yml file commits
$commits = git log --since="1 day ago" --pretty=format:"%h %s (%an)" --abbrev-commit --grep=".yml" --invert-grep
Write-Output "$commits"
# If no commits are found, cancel the workflow
if ([string]::IsNullOrEmpty($commits)) {