diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-05 22:45:39 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-05 22:45:39 +0800 |
| commit | 97b54420a48767cf63e6144586b885012cff59fe (patch) | |
| tree | f95dd23c2747e64e668b80a436a85dc5ff465f5b | |
| parent | 288f6661bf68d716ac32dc970be6b84b45a21b50 (diff) | |
chore(actions): include webmention content in data
| -rw-r--r-- | .github/workflows/fetch-webmentions.yml | 14 |
1 files 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 |
