Skip to content

Update Juice Shop ecosystem statistics #1268

Update Juice Shop ecosystem statistics

Update Juice Shop ecosystem statistics #1268

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