Skip to content

Commit

Permalink
Update actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Babalion committed Oct 23, 2024
1 parent bc8c382 commit c7911ae
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,37 @@ on:
schedule:
- cron: '0 3 * * *' # Daily at 03:00

permissions:
contents: write

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

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

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

- 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 }}
- name: execute py script
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)
git diff --exit-code || git commit -a -m "updated with action" --allow-empty
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: master
run: |
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git master

0 comments on commit c7911ae

Please sign in to comment.