This commit is contained in:
Waylon Walker 2022-12-27 16:50:47 -06:00
commit 212ee3028b
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
12 changed files with 1113 additions and 0 deletions

35
.github/workflows/daily-digest.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: "Daily activity digests"
on:
push:
schedule:
# 1pm UTC, so 8/9am Eastern.
# https://crontab.guru/#02_13_*_*_*
- cron: "02 13 * * *"
workflow_dispatch:
jobs:
digest:
name: "Daily digest"
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: "Check out the repo"
uses: actions/checkout@v3
- name: "Install Python"
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: "Install dinghy"
run: |
python -m pip install dinghy
- name: "Run dinghy"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m dinghy
- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v3.0.0
with:
target_branch: prod
build_dir: output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}