Process NLang Files #1
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: Process NLang Files | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # Daily at midnight UTC | |
| workflow_dispatch: # Manual trigger | |
| jobs: | |
| process: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run NLang processor | |
| env: | |
| UITHUB_SECRET: ${{ secrets.UITHUB_SECRET }} | |
| LLM_SECRET: ${{ secrets.LLM_SECRET }} | |
| LLM_MODEL: ${{ secrets.LLM_MODEL }} | |
| LLM_BASEPATH: ${{ secrets.LLM_BASEPATH }} | |
| run: node nlang.js | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add -A | |
| git diff --staged --quiet || git commit -m "Process .md.md files" | |
| git push |