Skip to content

Pull from IDOL

Pull from IDOL #943

name: Pull from IDOL
on:
repository_dispatch:
types: pull-idol-changes
workflow_dispatch:
schedule:
# Run the script at 0AM in UTC every day, which is 7PM or 8PM in ET.
- cron: '0 0 * * *'
pull_request:
paths:
- dti-website/pull-from-idol.ts
- .github/workflows/pull-from-idol.yml
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.BOT_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version-file: .node-version
- name: Use Yarn Cache
uses: actions/cache@v1
with:
path: ~/.cache/yarn
key: yarn-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
restore-keys: yarn-
- name: Install
run: yarn
- name: Pull From IDOL
env:
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
run: yarn workspace dti-website run pull-from-idol