-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|