update model joins (#801) #27
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: Build Showcases Index | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "showcases/**" | |
workflow_dispatch: {} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPO_NAME: ${{ github.event.repository.name }} | |
jobs: | |
build-index: | |
name: Build Showcase Index | |
# There is currently no way to limit workflow dispatch to only allow default branch | |
# so we need to restrict it here | |
# See https://github.community/t/limit-branch-for-workflow-dispatch/122099 | |
if: github.ref == 'refs/heads/master' && github.repository == 'finos/legend' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/[email protected] | |
with: | |
token: ${{ secrets.FINOS_GITHUB_TOKEN }} | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "FINOS Administrator" | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 16 | |
- name: Update Showcases Index | |
run: | | |
npm install | |
npm run update:showcases-index |