Merge pull request #105 from hs3city/switch-finance-workflow-to-nix #163
This file contains 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: "Update financial dashboard" | |
on: | |
push: | |
paths: | |
- "automation/finanse/*" | |
- ".github/workflows/finance.yaml" | |
jobs: | |
dashboard: | |
runs-on: ubuntu-latest | |
name: Update financial dashboard | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v27 | |
- name: Update dashboard | |
run: | | |
cd automation/finanse | |
nix build | |
cp result ../../layouts/shortcodes/finanse.html | |
nix flake check | |
git add ../../layouts/shortcodes/finanse.html | |
- name: Commit Changes | |
uses: stefanzweifel/git-auto-commit-action@v4.15.3 | |
with: | |
commit_message: Automated financial dashboard snapshot |