Skip to content

Commit

Permalink
Create actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Babalion committed Oct 23, 2024
1 parent 22523ff commit 9a9a7f9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: run zotero-to-html.py

on:
schedule:
- cron: '0 3 * * *' # Daily at 03:00

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.13' # install the python version needed

- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run main.py
env:
SOME_SECRET: ${{ secrets.SOME_SECRET }}
run: python zotero-to-html.py

- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Babalion"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master

0 comments on commit 9a9a7f9

Please sign in to comment.