From 1c399e67f4ff39bce0e8d28b59a24af734c03e5c Mon Sep 17 00:00:00 2001 From: merwanehamadi Date: Wed, 17 May 2023 09:52:52 -0700 Subject: [PATCH] Add $ to timestamp in ci.yml and improve diff (#4266) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb20cfe6..492336df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,12 +97,12 @@ jobs: id: stage_files run: | git add tests - git diff --cached --quiet && echo "No changes to commit" && exit 0 + git diff --cached --quiet tests && echo "No changes to commit" && exit 0 git config user.email "github-actions@github.com" git config user.name "GitHub Actions" git commit -m "Add new cassettes" TIMESTAMP_COMMIT=$(date +%Y%m%d%H%M%S) # generate a timestamp - echo "TIMESTAMP_COMMIT=TIMESTAMP_COMMIT" >> $GITHUB_ENV + echo "TIMESTAMP_COMMIT=$TIMESTAMP_COMMIT" >> $GITHUB_ENV - name: Create PR