PublishUpdatedCatalog #61412
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: 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 | |