Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
reichaves authored Sep 29, 2024
1 parent 27b4fa7 commit 3720984
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,24 @@ jobs:
run: |
git config user.name github-actions
git config user.email [email protected]
git config pull.rebase false
- name: Pull from hub
- name: Fetch from hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git pull https://reichaves:[email protected]/spaces/reichaves/Chatbot-Gemma2-9b-It-all-MiniLM-L6-v2-Brazil-PDF main --allow-unrelated-histories
run: git fetch https://reichaves:[email protected]/spaces/reichaves/Chatbot-Gemma2-9b-It-all-MiniLM-L6-v2-Brazil-PDF main

- name: Merge changes
run: |
git merge FETCH_HEAD --allow-unrelated-histories -m "Merge Hugging Face changes"
continue-on-error: true

- name: Check for merge conflicts
run: |
if git ls-files -u | grep -q '^'; then
echo "Merge conflicts detected. Please resolve them manually."
exit 1
fi
- name: Push to hub
env:
Expand Down

0 comments on commit 3720984

Please sign in to comment.