Unverified Commit f5a080dd authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

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

parent 91fb62d0
...@@ -97,6 +97,7 @@ jobs: ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment