pull/6409/head
neil 2025-06-25 21:27:08 +02:00
parent 21c758c3d3
commit 4a16aaacb6
1 changed files with 32 additions and 0 deletions

32
.github/workflows/wiki-monitor.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Notify via Issue on Wiki Edit
on:
gollum:
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Generate wiki change message
run: |
echo "Wiki page:" > wiki-change-msg.txt
echo "User: ${{ github.actor }}" >> wiki-change-msg.txt
echo "Time: $(date '+%Y-%m-%d %H:%M:%S')" >> wiki-change-msg.txt
echo "" >> wiki-change-msg.txt
for page in $(jq -r '.gollum.pages[].html_url' "$GITHUB_EVENT_PATH"); do
echo "Path: $page" >> wiki-change-msg.txt
done
- name: Create issue to notify Neilpang
uses: peter-evans/create-issue-from-file@v5
with:
title: "Wiki page"
content-filepath: ./wiki-change-msg.txt
assignees: Neilpang
env:
TZ: Asia/Shanghai