Skip to content

Commit

Permalink
feat: Add auto update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
KareemMAX authored Sep 5, 2023
1 parent d545c77 commit d5b9659
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update submodules
on:
push:
branches:
- main
workflow_dispatch:

jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️ ivy
uses: actions/checkout@v4
with:
repository: unifyai/ivy
token: ${{ secrets.IVY_BRANCH_TOKEN }}
submodules: recursive

- name: Update submodules
run: |
git config --global user.email "[email protected]"
git config --global user.name "ivy-seed"
git submodule update --remote docs/demos
git add .
git commit -m "Update submodules 🤖"
git push origin main

0 comments on commit d5b9659

Please sign in to comment.