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