WFGY Recognition Bot #46
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: WFGY Recognition Bot | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 4 * * *" | |
| jobs: | |
| recognition-scan: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Generate recognition scan | |
| run: | | |
| mkdir -p automation | |
| { | |
| echo "# WFGY Recognition Scan" | |
| echo | |
| echo "Generated at: $(date -u '+%Y-%m-%d %H:%M:%S UTC')" | |
| echo | |
| echo "## Recognition files" | |
| echo | |
| find recognition -type f | sort | |
| echo | |
| echo "Total recognition docs:" | |
| find recognition -type f | wc -l | |
| } > automation/recognition-scan.md | |
| - name: Commit report | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add automation/recognition-scan.md | |
| git diff --staged --quiet || git commit -m "bot: update recognition scan" | |
| git push |