forked from hackforla/website
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (28 loc) · 1009 Bytes
/
github-data.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
name: Update GitHub Data
# Run this action every day at 3am Pacific (11 am UTC)
on:
schedule:
- cron: '0 11 * * *'
jobs:
github_data:
runs-on: ubuntu-latest
if: github.repository == 'hackforla/website'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: GitHub Action for install npm dependencies
uses: bahmutov/npm-install@v1
with:
working-directory: ./github-actions/github-data
- name: Generate github-data.json
env:
token: ${{ secrets.GITHUB_TOKEN }}
run: node github-actions/github-data/get-project-data.js
- name: Auto Commit
uses: stefanzweifel/[email protected]
with:
# Optional glob pattern of files which should be added to the commit
file_pattern: _data/github-data.json
commit_message: Update contributor and language data
# Commit author settings
commit_author: GitHub Actions Bot <[email protected]>