Skip to content

Commit

Permalink
update timestamp if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanb committed Sep 13, 2022
1 parent 513624a commit 3d1a8aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ jobs:
- name: Run make split
run: make split

- name: update timestamp if needed
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'git dirty, updating timestamp'
date +%s > "timestamp.txt"
else
echo 'no git changes, no timestamp update needed'
fi

# Runs a set of commands using the runners shell
- name: Check git diff
run: |
Expand Down

0 comments on commit 3d1a8aa

Please sign in to comment.