Update README & Architecture #478
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: Update README & Architecture | |
| on: | |
| schedule: | |
| - cron: '0 */12 * * *' | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Validate category config and scripts | |
| run: | | |
| jq -e '.categories | type == "array" and length > 0' config/nshkr_categories.json > /dev/null | |
| bash -n scripts/lib/nshkr_categories.sh | |
| bash -n scripts/build_readme.sh | |
| bash -n scripts/generate_architecture.sh | |
| - name: Build README | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| chmod +x scripts/build_readme.sh | |
| ./scripts/build_readme.sh | |
| - name: Generate Architecture Docs | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| chmod +x scripts/generate_architecture.sh | |
| ./scripts/generate_architecture.sh | |
| - name: Commit Changes | |
| run: | | |
| git diff --quiet profile/README.md docs/ARCHITECTURE.md docs/dependencies.json 2>/dev/null || { | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add profile/README.md docs/ARCHITECTURE.md docs/dependencies.json | |
| git commit -m "Update README and architecture docs" | |
| git push | |
| } |