-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (27 loc) · 960 Bytes
/
build-docs.yml
File metadata and controls
28 lines (27 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build Docs
on:
schedule:
# Runs at 12am UTC
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
fetch-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false
- name: Fetch Docs ✨
run: |
git submodule update --init --recursive
git config --local user.email "avi.grg4567@gmail.com"
git config --local user.name "avisionx"
git submodule update --recursive --remote
git add .
git commit -m "update docs ✔️" || echo "No changes to commit"
- name: Push changes 🥂
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master