Skip to content

Instantly share code, notes, and snippets.

@cookie223
Created July 22, 2022 19:37
Show Gist options
  • Save cookie223/3f204dca6803f833c83c204759f1d980 to your computer and use it in GitHub Desktop.
Save cookie223/3f204dca6803f833c83c204759f1d980 to your computer and use it in GitHub Desktop.
name: price update
on:
schedule:
- cron: "00 04 * * *"
jobs:
price-update:
name: price update
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@master
- name: Set up Python3
uses: actions/setup-python@v1
with:
python-version: '3.7'
- uses: BSFishy/pip-action@v1
with:
packages: |
beancount
git+https://github.com/beancount/beanprice.git
- run: PYTHONPATH=./sources:./plugins bean-price -v main.bean >> 2022/prices.bean
- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: price updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment