Skip to content

send-weekly-dashboard #30

send-weekly-dashboard

send-weekly-dashboard #30

name: send-weekly-dashboard
on:
schedule:
- cron: '20 2 * * 1' # 월요일 한국시간 오전 11시 20분
workflow_dispatch:
jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: '20.15.0'
cache: 'yarn'
# cron job을 실행합니다.
- name: run script
run: |
yarn install
SLACK_WEEKLY_CHANNEL_ID=C06M9K1LT36 \
SLACK_AUTH_TOKEN=${{ secrets.SLACK_AUTH_TOKEN }} \
GHP_ACCESS_TOKEN=${{ secrets.GHP_ACCESS_TOKEN }} \
GITHUB_ORGANIZATION=wafflestudio \
yarn send:weekly-dashboard
env:
NODE_OPTIONS: --max_old_space_size=4096