Pull from IDOL #961
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- new-dti-website/pull-from-idol.ts | |
- .github/workflows/pull-from-idol.yml | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_TOKEN }} | |
- uses: actions/setup-node@v4 | |
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 new-dti-website run pull-from-idol |