mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-16 05:12:08 +08:00
Some checks failed
Haiku / Haiku (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
DragonFlyBSD / DragonFlyBSD (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
FreeBSD / FreeBSD (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
FreeBSD / FreeBSD (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Haiku / Haiku (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Linux / Linux (almalinux:latest) (push) Has been cancelled
Linux / Linux (alpine:latest) (push) Has been cancelled
Linux / Linux (archlinux:latest) (push) Has been cancelled
Linux / Linux (debian:latest) (push) Has been cancelled
Linux / Linux (fedora:latest) (push) Has been cancelled
Linux / Linux (gentoo/stage3) (push) Has been cancelled
Linux / Linux (kalilinux/kali) (push) Has been cancelled
Linux / Linux (opensuse/leap:latest) (push) Has been cancelled
Linux / Linux (oraclelinux:8) (push) Has been cancelled
Linux / Linux (ubuntu:latest) (push) Has been cancelled
NetBSD / NetBSD (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
MacOS / MacOS (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Omnios / Omnios (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Omnios / Omnios (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
OpenBSD / OpenBSD (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
OpenBSD / OpenBSD (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
OpenIndiana / OpenIndiana (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
OpenIndiana / OpenIndiana (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
PebbleStrict / PebbleStrict (push) Has been cancelled
PebbleStrict / PebbleStrict_IPCert (push) Has been cancelled
Solaris / Solaris (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Solaris / Solaris (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Ubuntu / Ubuntu (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Ubuntu / Ubuntu (1, , , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Ubuntu / Ubuntu (Smallstep Intermediate CA, Smallstep Intermediate CA, , 1, https://localhost:9000/acme/acme/directory, ) (push) Has been cancelled
Ubuntu / Ubuntu (Smallstep Intermediate CA, Smallstep Intermediate CA, , 1, https://localhost:9000/acme/acme/directory, 1, , 172.17.0.1) (push) Has been cancelled
Ubuntu / Ubuntu (ZeroSSL RSA Domain Secure Site CA, ZeroSSL ECC Domain Secure Site CA, githubtest@acme.sh, ZeroSSL.com, ) (push) Has been cancelled
Shellcheck / ShellCheck (push) Has been cancelled
Shellcheck / shfmt (push) Has been cancelled
Windows / Windows (, , , LetsEncrypt.org_test, (STAGING)) (push) Has been cancelled
Build DockerHub / CheckToken (push) Has been cancelled
Build DockerHub / build (push) Has been cancelled
disable notifications for myself
67 lines
2.1 KiB
YAML
67 lines
2.1 KiB
YAML
name: Notify via Issue on Wiki Edit
|
||
|
||
on:
|
||
gollum:
|
||
|
||
jobs:
|
||
notify:
|
||
runs-on: ubuntu-latest
|
||
if: github.actor != 'neilpang'
|
||
steps:
|
||
- name: Checkout wiki repository
|
||
uses: actions/checkout@v4
|
||
with:
|
||
repository: ${{ github.repository }}.wiki
|
||
path: wiki
|
||
fetch-depth: 0
|
||
|
||
- name: Generate wiki change message
|
||
run: |
|
||
actor="${{ github.actor }}"
|
||
sender_url=$(jq -r '.sender.html_url' "$GITHUB_EVENT_PATH")
|
||
page_name=$(jq -r '.pages[0].page_name' "$GITHUB_EVENT_PATH")
|
||
page_sha=$(jq -r '.pages[0].sha' "$GITHUB_EVENT_PATH")
|
||
page_url=$(jq -r '.pages[0].html_url' "$GITHUB_EVENT_PATH")
|
||
page_action=$(jq -r '.pages[0].action' "$GITHUB_EVENT_PATH")
|
||
page_summary=$(jq -r '.pages[0].summary' "$GITHUB_EVENT_PATH")
|
||
now="$(date '+%Y-%m-%d %H:%M:%S')"
|
||
|
||
cd wiki
|
||
prev_sha=$(git rev-list $page_sha^ -- "$page_name.md" | head -n 1)
|
||
if [ -n "$prev_sha" ]; then
|
||
git diff $prev_sha $page_sha -- "$page_name.md" > ../wiki.diff || echo "(No diff found)" > ../wiki.diff
|
||
else
|
||
echo "(no diff)" > ../wiki.diff
|
||
fi
|
||
cd ..
|
||
{
|
||
echo "Wiki edited"
|
||
echo -n "User: "
|
||
echo "@$actor [$actor]($sender_url)"
|
||
echo "Time: $now"
|
||
echo "Page: [$page_name]($page_url) (Action: $page_action)"
|
||
echo "Comment: $page_summary"
|
||
echo "[Click here to Revert](${page_url}/_history)"
|
||
echo ""
|
||
echo "----"
|
||
echo "### diff:"
|
||
echo '```diff'
|
||
cat wiki.diff
|
||
echo '```'
|
||
} > 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
|
||
|
||
|
||
|
||
|
||
|
||
|