Do a pull in case docs were updated during build (#15922)
This commit is contained in:
1
.github/workflows/build_documentation.yml
vendored
1
.github/workflows/build_documentation.yml
vendored
@@ -97,6 +97,7 @@ jobs:
|
||||
cd doc-build &&
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
git add . &&
|
||||
git stash && git pull && git stash apply &&
|
||||
git commit -m "Updated with commit ${{ github.sha }} \n\nSee: https://github.com/huggingface/transformers/commit/${{ github.sha }}" &&
|
||||
git push origin main
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user