Skip to content

Commit

Permalink
pull before push
Browse files Browse the repository at this point in the history
  • Loading branch information
ceceppa committed Mar 21, 2024
1 parent 7638a9d commit c980f09
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,21 @@ jobs:
run: |
cd docs
rm -rf build
yarn install --frozen-lockfile --non-interactive
yarn build
cd build
git init
git branch -M main
git remote add origin https://github.com/ceceppa/anima-doc.git
git config user.name "GitHub Actions Bot"
git config user.email "<[email protected]>"
git remote add origin https://github.com/ceceppa/anima-doc.git
git pull origin main
rm -rf *
yarn install --frozen-lockfile --non-interactive
yarn build
git add .
git commit -m "Documentation"
git remote set-url --push origin https://ceceppa:${{ secrets.TOKEN }}@github.com/ceceppa/anima-doc.git
git commit -m "Update docs"
git push -f origin main

0 comments on commit c980f09

Please sign in to comment.