feat(vocabulary): add per-term aliases (synonyms) #16
This file contains hidden or 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: Generate Aggregated Data | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'profiles/**' | |
| - 'schemas/**' | |
| - 'src/crawler/**' | |
| jobs: | |
| crawl: | |
| runs-on: ubuntu-latest | |
| # Only run on main repository, not on forks | |
| if: github.repository == 'FIDEScommunity/fides-interop-profiles' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run crawler | |
| run: npm run crawl | |
| - name: Check for changes | |
| id: git-check | |
| run: | | |
| git diff --exit-code data/aggregated.json || echo "changed=true" >> $GITHUB_OUTPUT | |
| - name: Commit and push if changed | |
| if: steps.git-check.outputs.changed == 'true' | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add data/aggregated.json | |
| git commit -m "chore: update aggregated.json [skip ci]" | |
| git push |