-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.11 KB
/
main.yml
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
29
30
31
32
33
34
# this runs nightly and pulls changes from my projects google sheet
name: Rebuild kevbot.xyz homepage
on:
workflow_dispatch:
push:
branches:
- main
schedule:
# run every night at 2:42 am PST
- cron: "42 10 * * *"
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: |
python -m venv venv
. venv/bin/activate
python -m pip install -r requirements.txt
# this is the script that does the stuff
python scripts/build-home.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Rebuild homepage automatically
commit_options: "--no-verify"
commit_user_name: GitHub Actions
commit_user_email: github-actions[bot]@users.noreply.github.com
commit_author: GitHub Actions <github-actions[bot]@users.noreply.github.com>
file_pattern: content/contents.lr
- uses: gautamkrishnar/keepalive-workflow@v2 # using the workflow with default settings