diff --git a/.github/workflows/wfgy-recognition-bot.yml b/.github/workflows/wfgy-recognition-bot.yml new file mode 100644 index 00000000..9de7d61e --- /dev/null +++ b/.github/workflows/wfgy-recognition-bot.yml @@ -0,0 +1,39 @@ +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: | + { + 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 + } > 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 recognition-scan.md + git diff --staged --quiet || git commit -m "bot: update recognition scan" + git push