-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (33 loc) · 1.05 KB
/
update-data.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update Contributor CI Data
on:
workflow_dispatch:
inputs:
does_not_matter:
description: 'This variable does not matter.'
required: true
default: 'pizzadoodle'
schedule:
- cron: '0 3 * * *'
jobs:
extraction:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Update Data
uses: vsoch/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.CCI_GITHUB_TOKEN }}
with:
results_dir: _data/
extract: repos repo_metadata topics languages releases stars activity_commits activity_lines
extract_save_format: year/month
- name: Check that results exist
run: tree _data
- name: Push Results
run: |
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git add _data/data/*
git commit -m "Automated push with new data results $(date '+%Y-%m-%d')" || exit 0
git push origin main || exit 0