Skip to content

Commit

Permalink
ci: update fetchData.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
elhakimyasya committed Aug 6, 2023
1 parent 491740d commit ad6da4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/fetchData.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git add .
git commit -m "Update doodles data [skip ci]"
git commit -F commit_message.txt
git push

0 comments on commit ad6da4f

Please sign in to comment.