Created
April 7, 2022 15:14
-
-
Save huruka/9187784f25f0b2d554880f1aa91cc77f to your computer and use it in GitHub Desktop.
beanprice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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