Test generate-docs action with cron

This commit is contained in:
Jon Siwek 2020-09-01 21:40:21 -07:00
parent 7865e38134
commit e67dae182d

View file

@ -1,9 +1,8 @@
name: Generate Documentation name: Generate Documentation
on: push on:
# on: schedule:
# schedule: - cron: '*/5 * * * *'
# - cron: '0 0 * * *'
jobs: jobs:
generate: generate:
@ -13,7 +12,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Update Submodules - name: Sync Submodules
shell: bash shell: bash
run: | run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)" auth_header="$(git config --local --get http.https://github.com/.extraheader)"
@ -22,6 +21,15 @@ jobs:
submodule update --init --force --recursive --depth=1 submodule update --init --force --recursive --depth=1
( cd doc && git checkout master ) ( cd doc && git checkout master )
- name: Update zeek-docs Submodule
run: |
echo "*** Update zeek/doc Submodule ***"
git remote add auth "https://zeek-bot:${{ secrets.ZEEK_BOT_TOKEN }}@github.com/zeek/zeek"
git add doc
git status
git commit -m 'Update doc submodule [nomail] [skip ci]' && git push auth master || /bin/true
exit 1
- name: Fetch Dependencies - name: Fetch Dependencies
run: | run: |
sudo apt-get update sudo apt-get update
@ -81,9 +89,3 @@ jobs:
git status git status
git commit -m "Generate docs" && git push || /bin/true git commit -m "Generate docs" && git push || /bin/true
cd .. cd ..
echo "*** Update zeek/doc Submodule ***"
git remote set-url origin "https://zeek-bot:${{ secrets.ZEEK_BOT_TOKEN }}@github.com/zeek/zeek"
git add doc
git status
git commit -m 'Update doc submodule [nomail] [skip ci]' && git push || /bin/true