From ad6da4f191f11c05d77b8a5ddd6f1d74d68a9ccf Mon Sep 17 00:00:00 2001 From: Yasya El Hakim Date: Sun, 6 Aug 2023 14:00:56 +0700 Subject: [PATCH] ci: update fetchData.yml --- .github/workflows/fetchData.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fetchData.yml b/.github/workflows/fetchData.yml index ffe34f6..aa15235 100644 --- a/.github/workflows/fetchData.yml +++ b/.github/workflows/fetchData.yml @@ -24,10 +24,13 @@ jobs: - name: Run Data Fetch Script run: node index.js - - name: Commit and Push Changes + - name: Set Commit Message run: | + # Set the commit message with the current date in DD/MM/YYYY format + COMMIT_MESSAGE="Update Doodles Data ($(date +'%d/%m/%Y'))" + echo "$COMMIT_MESSAGE" > commit_message.txt git config --global user.name "Yasya El Hakim" git config --global user.email "yasyaelhakim@gmail.com" git add . - git commit -m "Update doodles data [skip ci]" + git commit -F commit_message.txt git push