mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-26 02:14:27 +01:00
Add $ to timestamp in ci.yml and improve diff (#4266)
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user