mirror of
https://github.com/acmesh-official/acme.sh
synced 2025-08-22 01:49:43 +00:00
33 lines
931 B
YAML
33 lines
931 B
YAML
name: Notify via Issue on Wiki Edit
|
|
|
|
on:
|
|
gollum:
|
|
|
|
jobs:
|
|
notify:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Generate wiki change message
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install -y jq
|
|
echo "Wiki page edited" > 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
|
|
cat "$GITHUB_EVENT_PATH"
|
|
jq -r '.gollum.pages // [] | .[] | "Page: \(.html_url) (action: \(.action))"' "$GITHUB_EVENT_PATH" >> wiki-change-msg.txt
|
|
|
|
- name: Create issue to notify Neilpang
|
|
uses: peter-evans/create-issue-from-file@v5
|
|
with:
|
|
title: "Wiki edited"
|
|
content-filepath: ./wiki-change-msg.txt
|
|
assignees: Neilpang
|
|
env:
|
|
TZ: Asia/Shanghai
|
|
|
|
|
|
|
|
|
|
|