Update interop-profile.swiyu-v0.json #4
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 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - 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 |