Skip to content

Aggregate VictoriaMetrics #680

Aggregate VictoriaMetrics

Aggregate VictoriaMetrics #680

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: [email protected]
commit_author: GitHub Actions <[email protected]>
if: github.repository == 'NixOS/nixos-metrics'