Skip to content

Update README.md

Update README.md #8

Workflow file for this run

- name: Commit and push daily update

Check failure on line 1 in .github/workflows/daily-update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/daily-update.yml

Invalid workflow file

(Line: 1, Col: 1): A sequence was not expected
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Create file if missing
if [ ! -f daily_update.txt ]; then
echo "File not found. Creating new daily_update.txt..."
echo "Last updated: $(date)" > daily_update.txt
fi
# Update file with today's date
echo "Last updated: $(date)" > daily_update.txt
# Commit and push changes
if [[ `git status --porcelain` ]]; then
git add daily_update.txt
git commit -m "⏰ Auto update: $(date)"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:${{ github.ref }}
else
echo "No changes to commit"
fi