Skip to content

Instantly share code, notes, and snippets.

@huruka
Created April 7, 2022 15:14
Show Gist options
  • Select an option

  • Save huruka/9187784f25f0b2d554880f1aa91cc77f to your computer and use it in GitHub Desktop.

Select an option

Save huruka/9187784f25f0b2d554880f1aa91cc77f to your computer and use it in GitHub Desktop.
beanprice
name: price update
on:
schedule:
- cron: "00 12 * * *"
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 ledger/xx.beancount >> ledger/price.beancount
- 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