From 830bf2a696ae3604191e2ae9af6d300b8dd0b20c Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Mon, 5 Jan 2026 22:45:39 +0800 Subject: chore(actions): include webmention content in data Former-commit-id: 97b54420a48767cf63e6144586b885012cff59fe --- .github/workflows/fetch-webmentions.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/fetch-webmentions.yml b/.github/workflows/fetch-webmentions.yml index b34c6c18..b585be74 100644 --- a/.github/workflows/fetch-webmentions.yml +++ b/.github/workflows/fetch-webmentions.yml @@ -12,14 +12,6 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Debug env - run: | - echo "DOMAIN=$DOMAIN" - echo "TOKEN=${TOKEN:0:4}***" # only show first 4 chars - env: - TOKEN: ${{ secrets.WEBMENTION_IO_TOKEN }} - DOMAIN: ${{ secrets.WEBMENTION_IO_DOMAIN }} - - name: Fetch webmentions env: TOKEN: ${{ secrets.WEBMENTION_IO_TOKEN }} @@ -30,6 +22,9 @@ jobs: curl -s "https://webmention.io/api/mentions.jf2?domain=$DOMAIN&token=$TOKEN" \ | jq ' .children + | map( + .["wm-target"] |= sub("^https?://[^/]+";"") + ) | sort_by(."wm-target") | group_by(."wm-target") | map({ @@ -40,7 +35,8 @@ jobs: url: .url, source: ."wm-source", published: .published, - received: ."wm-received" + received: ."wm-received", + content: .content // null }) }) | add -- cgit v1.2.3