mirror of
https://github.com/onestardao/WFGY.git
synced 2026-04-28 03:29:51 +00:00
Merge pull request #105 from onestardao/wfgy-problemmap-bot
Add WFGY ProblemMap Bot workflow
This commit is contained in:
commit
ce94718904
1 changed files with 39 additions and 0 deletions
39
.github/workflows/wfgy-problemmap-bot.yml
vendored
Normal file
39
.github/workflows/wfgy-problemmap-bot.yml
vendored
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue