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 &&
|
cd doc-build &&
|
||||||
if [[ `git status --porcelain` ]]; then
|
if [[ `git status --porcelain` ]]; then
|
||||||
git add . &&
|
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 commit -m "Updated with commit ${{ github.sha }} \n\nSee: https://github.com/huggingface/transformers/commit/${{ github.sha }}" &&
|
||||||
git push origin main
|
git push origin main
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user