Skip to content

Commit

Permalink
Tweak git command
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jan 5, 2025
1 parent eb65aac commit a07a7d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
# Do not valgrind when there's nothing new to valgrind in the repo
- name: Check if there was any commits within the last 24 hours
run: |
if git log --oneline --since="24 hours ago" --name-only --pretty=format: | grep '.'; then
echo "recent_commits=true" >> $GITHUB_ENV
else
if git --no-pager log --oneline --since="24 seconds ago" --exit-code; then
echo "No commits, will not run valgrind"
echo "recent_commits=false" >> $GITHUB_ENV
else
echo "recent_commits=true" >> $GITHUB_ENV
fi
- if: env.recent_commits == 'true'
Expand Down

0 comments on commit a07a7d4

Please sign in to comment.