-
Notifications
You must be signed in to change notification settings - Fork 45
35 lines (33 loc) · 980 Bytes
/
build.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
name: PublishUpdatedCatalog
on:
workflow_dispatch:
schedule:
- cron: '*/30 * * * *'
jobs:
generate:
name: 'Update Flow Library Catalogue'
runs-on: ubuntu-latest
steps:
- name: Check out flow-library repository
uses: actions/checkout@v2
with:
path: 'flow-library'
- name: Check out catalogue.nodered.org repository
uses: actions/checkout@v2
with:
repository: 'node-red/catalogue.nodered.org'
path: 'catalogue.nodered.org'
token: ${{ secrets.FLOW_LIBRARY_PAT }}
ref: 'master'
- uses: actions/setup-node@v1
with:
node-version: '18'
- name: npm install
run: |
cd flow-library
npm install --only=production
- name: Run update
env:
NR_MONGO_URL: ${{ secrets.NR_MONGO_URL }}
FLOW_ENV: PRODUCTION
run: ./flow-library/.github/scripts/generate-catalog.sh