-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1004 Bytes
/
get-stars.yml
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
38
39
name: get-stars
on:
schedule:
# daily at midnight CST
- cron: '0 5 * * *'
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download stars to CSV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
USERNAME: ${{ github.repository_owner }}
run: |
./etl/get-stars.sh > ./stars.json
./etl/stars-to-csv.sh ./stars.json > ./stars.csv
rm ./stars.json
shell: bash
# Commit the changes
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions [bot]"
git add .
git commit -m "Update starred repository data"
# Push the changes
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}