Do a pull in case docs were updated during build (#15922)

This commit is contained in:
Sylvain Gugger
2022-03-08 07:19:41 -05:00
committed by GitHub
parent 91fb62d01c
commit f5a080dd10

View File

@@ -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