Skip to content

Collect x402 Metrics #86

Collect x402 Metrics

Collect x402 Metrics #86

Workflow file for this run

name: Collect x402 Metrics
on:
schedule:
# Run daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch: # Allow manual trigger
jobs:
collect:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Collect AIBTC metrics
run: |
node scripts/collect-metrics.js
- name: Commit and push data
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add data/*.json
git diff --quiet && git diff --staged --quiet || git commit -m "Update metrics: $(date -u '+%Y-%m-%d %H:%M:%S UTC')"
git push