Skip to content

Update Commit Count #82

Update Commit Count

Update Commit Count #82

name: Update Commit Count
on:
schedule:
- cron: '0 1 * * *'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: scripts
run: yarn
- name: Update Commit Count
working-directory: scripts
env:
ACTIVE_CONFIG_VERSION: ${{ secrets.ACTIVE_CONFIG_VERSION }}
BLACK_LISTED_BOTS: ${{ secrets.BLACK_LISTED_BOTS }}
BLACK_LISTED_ORGS: ${{ secrets.BLACK_LISTED_ORGS }}
BLACK_LISTED_REPOS: ${{ secrets.BLACK_LISTED_REPOS }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
GIT_USER: ${{ secrets.GIT_USER }}
HYGRAPH_ENDPOINT: ${{ secrets.HYGRAPH_ENDPOINT }}
HYGRAPH_TOKEN: ${{ secrets.HYGRAPH_TOKEN }}
VERCEL_DEPLOYMENT_HOOK: ${{ secrets.VERCEL_DEPLOYMENT_HOOK }}
KV_URL: ${{ secrets.KV_URL }}
KV_REST_API_URL: ${{ secrets.KV_REST_API_URL }}
KV_REST_API_TOKEN: ${{ secrets.KV_REST_API_TOKEN }}
KV_REST_API_READ_ONLY_TOKEN: ${{ secrets.KV_REST_API_READ_ONLY_TOKEN }}
run: |
env \
ACTIVE_CONFIG_VERSION=$ACTIVE_CONFIG_VERSION \
BLACK_LISTED_BOTS=$BLACK_LISTED_BOTS \
BLACK_LISTED_ORGS=$BLACK_LISTED_ORGS \
BLACK_LISTED_REPOS=$BLACK_LISTED_REPOS \
GIT_TOKEN=$GIT_TOKEN \
GIT_USER=$GIT_USER \
HYGRAPH_ENDPOINT=$HYGRAPH_ENDPOINT \
HYGRAPH_TOKEN=$HYGRAPH_TOKEN \
VERCEL_DEPLOYMENT_HOOK=$VERCEL_DEPLOYMENT_HOOK \
KV_URL=$KV_URL \
KV_REST_API_URL=$KV_REST_API_URL \
KV_REST_API_TOKEN=$KV_REST_API_TOKEN \
KV_REST_API_READ_ONLY_TOKEN=$KV_REST_API_READ_ONLY_TOKEN \
node --no-warnings update-commit-count.js