Skip to content

Add Vercel Cron

Add Vercel Cron #534

on:
pull_request:
types: [opened, synchronize]
issue_comment:
types: [created]
name: Generate Pull Request Next Stats
jobs:
stats:
name: PR Stats
runs-on: ubuntu-latest
steps:
- uses: khan/[email protected]
id: check
with:
reaction: eyes
trigger: 'TypeofWebBot stats'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Is this a comment
if: steps.check.outputs.triggered == 'true'
uses: xt0rted/[email protected]
id: comment-branch
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
- name: Checkout PR
if: steps.check.outputs.triggered == 'true'
uses: actions/checkout@v2
with:
path: pr-branch
ref: ${{steps.comment-branch.outputs.head_ref}}
- name: Checkout base
if: steps.check.outputs.triggered == 'true'
uses: actions/checkout@v2
with:
path: base-branch
ref: develop
- name: Compare sizes
if: steps.check.outputs.triggered == 'true'
uses: typeofweb/typeofweb-next-stats-action@pkg
with:
pr_directory_name: pr-branch
base_directory_name: base-branch
env:
DATABASE_URL: ${{secrets.DATABASE_URL}}
DATABASE_POOL_URL: ${{secrets.DATABASE_URL}}
GITHUB_TOKEN: ${{secrets.TYPEOFWEB_BOT_GITHUB_TOKEN}}