-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (39 loc) · 1.22 KB
/
update-statistics.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
38
39
40
41
name: "Update Juice Shop ecosystem statistics"
on:
schedule:
- cron: '0 12 * * *'
jobs:
collect:
runs-on: ubuntu-latest
steps:
- name: "Check out Git repository"
uses: actions/checkout@v3
- name: "Use Node.js 18"
uses: actions/setup-node@v3
with:
node-version: 18
- name: "Install stats collector"
run: npm install
- name: "Collect statistics"
run: npm run collect
- uses: stefanzweifel/[email protected]
with:
commit_message: "Persist collected statistics"
branch: ${{ github.head_ref }}
commit_options: '--signoff'
commit_user_name: JuiceShopBot
commit_user_email: [email protected]
commit_author: JuiceShopBot <[email protected]>
heroku:
needs: [collect]
runs-on: ubuntu-latest
steps:
- name: "Check out Git repository"
uses: actions/checkout@v3
- name: "Deploy to Heroku"
uses: akhileshns/[email protected]
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: juicy-statistics
heroku_email: [email protected]
branch: master