Aggregate VictoriaMetrics #574
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: "Aggregate VictoriaMetrics" | |
on: | |
workflow_dispatch: # allows manual triggering | |
schedule: | |
- cron: '0 7 * * *' # runs daily at 07:00 | |
jobs: | |
netlify-metrics: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out the data branch | |
uses: actions/checkout@v4 | |
with: | |
path: data | |
ref: data | |
- name: aggregate jsonl files | |
run: cat data/victoriametrics/*.jsonl > data/victoriametrics.jsonl | |
- name: Commit aggregate file to data branch | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Merge .jsonl files | |
repository: ./data | |
branch: data | |
file_pattern: victoriametrics.jsonl | |
commit_user_name: NixOS webmaster | |
commit_user_email: webmaster@nixos.org | |
commit_author: GitHub Actions <webmaster@nixos.org> | |
if: github.repository == 'NixOS/nixos-metrics' |