Skip to content

Commit aed7fca

Browse files
committed
👷 Update CI build of docs site, with --fetch-depth
1 parent 51b89d2 commit aed7fca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/update-docs-site.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
with:
3737
ref: 'WEBSITE/docs-site-source'
3838
path: 'website-docs'
39+
fetch-depth: 0
3940
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
4041

4142
- name: Install Python 🐍
@@ -67,6 +68,7 @@ jobs:
6768
git config --local user.name "Liss-Bot"
6869
git add docs
6970
git commit -m "Update documentation" || echo "No changes to commit"
71+
git pull --rebase || (git rebase --abort && exit 1)
7072
git push
7173
env:
7274
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)