From 3d1a8aa746c389c60c6dcb75492a177d9f9f3514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Baebler?= Date: Tue, 13 Sep 2022 15:08:13 +0200 Subject: [PATCH] update timestamp if needed --- .github/workflows/make.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/make.yml b/.github/workflows/make.yml index a345329..1a15100 100644 --- a/.github/workflows/make.yml +++ b/.github/workflows/make.yml @@ -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: |