AIOstreams / .github /workflows /update.yml
Avk44's picture
Update update.yml
7e00b25 unverified
raw
history blame contribute delete
834 Bytes
name: Auto Update HF Space
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Safe update (append below config)
run: |
echo "" >> README.md
echo "<!-- update: $(date) -->" >> README.md
- name: Commit change
run: |
git config user.email "bot@example.com"
git config user.name "bot"
git add README.md
git commit -m "auto update" || echo "no changes"
- name: Push to Hugging Face
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git push https://Renegade44:${HF_TOKEN}@huggingface.co/spaces/Renegade44/AIOstreams HEAD:main --force