Skip to content

Commit

Permalink
Updated metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
djgagne committed Aug 8, 2024
1 parent 88f3200 commit 24a5b78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ jobs:
with open(metrics_file, 'r+') as f:
metrics_dict = yaml.load(f)
metrics_dict['counter_item'][1]["number"] = publications
metrics_dict['counter_item'][2]["number"] = realtimeproducts
metrics_dict['counter_item'][3]["number"] = interns
metrics_dict['counter_item'][0]["number"] = publications
metrics_dict['counter_item'][1]["number"] = realtimeproducts
metrics_dict['counter_item'][2]["number"] = interns
with open(metrics_file, 'w') as f:
yaml.dump(metrics_dict, f)
- name: Commit and push changes
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '<${{ github.actor }}@users.noreply.github.com>'
git remote set-url origin https://x-access-token:${{ secrets.VAST_METRICS }}@github.com/NCAR/miles
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/NCAR/miles
git add data/metrics.yml
git commit --allow-empty -m "Update metrics.yml from changes to data"
git push -u origin HEAD
2 changes: 1 addition & 1 deletion data/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ heading: METRICS
counter_item:

- title: Publications
number: 25
number: 28
url: publications

- title: Real Time Products
Expand Down

0 comments on commit 24a5b78

Please sign in to comment.