From 68d26c45507ac8a9a953197cb290d877c2490d1f Mon Sep 17 00:00:00 2001 From: PSBigBig + MiniPS Date: Sun, 8 Mar 2026 16:24:41 +0800 Subject: [PATCH] Add WFGY ProblemMap Bot workflow --- .github/workflows/wfgy-problemmap-bot.yml | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/wfgy-problemmap-bot.yml diff --git a/.github/workflows/wfgy-problemmap-bot.yml b/.github/workflows/wfgy-problemmap-bot.yml new file mode 100644 index 00000000..675655c4 --- /dev/null +++ b/.github/workflows/wfgy-problemmap-bot.yml @@ -0,0 +1,39 @@ +name: WFGY ProblemMap Bot + +on: + workflow_dispatch: + schedule: + - cron: "0 5 * * *" + +jobs: + problemmap-scan: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Generate ProblemMap scan + run: | + { + echo "# WFGY ProblemMap Scan" + echo + echo "Generated at: $(date -u '+%Y-%m-%d %H:%M:%S UTC')" + echo + echo "## ProblemMap files" + echo + find ProblemMap -type f | sort + echo + echo "Total ProblemMap docs:" + find ProblemMap -type f | wc -l + } > problemmap-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 problemmap-scan.md + git diff --staged --quiet || git commit -m "bot: update problemmap scan" + git push