From a40f8b55b5650ac3a09deb9338ed21d096d4a741 Mon Sep 17 00:00:00 2001 From: Ashad Qureshi Date: Sat, 19 Oct 2024 18:48:03 +0500 Subject: [PATCH] fix 3 --- .github/workflows/sync2hf.yaml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/sync2hf.yaml b/.github/workflows/sync2hf.yaml index de55afe..b03c20d 100644 --- a/.github/workflows/sync2hf.yaml +++ b/.github/workflows/sync2hf.yaml @@ -14,21 +14,24 @@ jobs: with: fetch-depth: 0 - - name: Replace README content - run: | - echo "---" > README.md - echo "title: Room Aligner" >> README.md - echo "emoji: 🏠" >> README.md - echo "colorFrom: blue" >> README.md - echo "colorTo: red" >> README.md - echo "sdk: fastapi" >> README.md - echo "app_file: app.py" >> README.md - echo "pinned: false" >> README.md - echo "---" >> README.md - + - name: Replace README content + run: | + echo "---" > README.md + echo "title: Room Aligner" >> README.md + echo "emoji: 🏠" >> README.md + echo "colorFrom: blue" >> README.md + echo "colorTo: red" >> README.md + echo "sdk: fastapi" >> README.md + echo "app_file: app.py" >> README.md + echo "pinned: false" >> README.md + echo "---" >> README.md - name: Push to Hugging Face hub env: HF_TOKEN: ${{ secrets.HF_SECRET }} run: | - git remote add origin https://Ashad001:${{ secrets.SECRET }}@ + git remote remove origin || true + git remote add origin https://Ashad001:${{ secrets.HF_SECRET }}@huggingface.co/spaces/Ashad001/roomaligner + git add README.md + git commit -m "Update README with template" + git push --force origin main