-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (39 loc) · 1.09 KB
/
update-package-data.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update package data
on:
schedule:
- cron: "0 22 * * *"
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "verbose"
type: choice
options:
- info
- verbose
- debug
limit:
description: "Number of projects to process (mainly for debugging, keep the default value of 0 to process everything)"
required: false
type: number
default: 0
jobs:
update-package-data:
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8.11.0
- name: Install Dependencies
shell: bash
run: pnpm install
- run: node run cli/tasks/projects/update-package-data.task.js --limit ${{ inputs.limit || 0 }} --loglevel ${{ inputs.logLevel || 'info' }}
env:
MONGO_URI_PRODUCTION: ${{ secrets.MONGO_URI_PRODUCTION }}