Skip to content

Update Juice Shop ecosystem statistics #1359

Update Juice Shop ecosystem statistics

Update Juice Shop ecosystem statistics #1359

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@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: "Use Node.js 18"
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0
with:
node-version: 20
- name: "Install stats collector"
run: npm install
- name: "Collect statistics"
run: npm run collect
- uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 #v5.0.1
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@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: "Install Heroku CLI"
run: curl https://cli-assets.heroku.com/install.sh | sh
- name: "Deploy to Heroku"
uses: akhileshns/heroku-deploy@581dd286c962b6972d427fcf8980f60755c15520 #v3.13.15
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: juicy-statistics
heroku_email: [email protected]
branch: master