Switch generate-docs action to daily schedule

This commit is contained in:
Jon Siwek 2020-09-01 22:33:05 -07:00
parent 45577d16bf
commit efcdacda98
3 changed files with 16 additions and 13 deletions

View file

@ -2,7 +2,7 @@ name: Generate Documentation
on:
schedule:
- cron: '*/5 * * * *'
- cron: '0 0 * * *'
jobs:
generate:
@ -23,17 +23,6 @@ jobs:
submodule update --init --force --recursive --depth=1
( cd doc && git checkout master )
- name: Update zeek-docs Submodule
run: |
echo "*** Update zeek/doc Submodule ***"
git config --global user.name zeek-bot
git config --global user.email info@zeek.org
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
run: |
sudo apt-get update
@ -93,3 +82,13 @@ jobs:
git status
git commit -m "Generate docs" && git push || /bin/true
cd ..
- name: Update zeek-docs Submodule
run: |
echo "*** Update zeek/doc Submodule ***"
git config --global user.name zeek-bot
git config --global user.email info@zeek.org
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

View file

@ -1,4 +1,8 @@
3.3.0-dev.236 | 2020-09-01 22:33:05 -0700
* Fix/finalize the generate-docs Github Action (Jon Siwek, Corelight)
3.3.0-dev.230 | 2020-09-01 20:32:01 -0700
* Fix generate-docs action to not fail when there's no changes (Jon Siwek, Corelight)

View file

@ -1 +1 @@
3.3.0-dev.230
3.3.0-dev.236