Skip to content

Run Culture 3r Aggregator #327

Run Culture 3r Aggregator

Run Culture 3r Aggregator #327

name: Run Culture 3r Aggregator
on:
workflow_dispatch:
schedule:
- cron: '0 7 * * *' # 3 am ET every day
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_DATA_DOG_CLIENT_TOKEN: ${{ secrets.DATA_DOG_CLIENT_TOKEN }}
envkey_ENABLING_LOG_TO_DATA_DOG: true
envkey_CMS_REFERER_HEADER: ${{ vars.CMS_REFERER_HEADER }}
file_name: .env
fail_on_empty: false
- name: Build Footlight Aggregator
run: npm run build
- name: Import entities to footlight
run: |
node ./dist/main-commander.js import:entities -u ${{vars.AGGREGATOR_USER_CULTURE_3R}} -p ${{secrets.AGGREGATOR_PASSWORD_CULTURE_3R}} -s http://kg.artsdata.ca/culture-creates/footlight/culture3r-com -i https://api.cms.footlight.io -c 657199fea5ac3d006314ea92 -b 5 -m https://raw.githubusercontent.com/culturecreates/footlight-aggregator/main/data/culture-3r-mapping.json