summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-14 19:01:17 +0800
committereltrac <hi@eltr.ac>2026-03-14 19:01:17 +0800
commitfc2b9bddbfbdd584ad8224761a3b965646136a5b (patch)
treeed837682a8f6f4ddad9b630ebe5d372bd67af46f
parentdceaa0d9bf04b6e9cb3ad46bb4dba62d8a01c6bf (diff)
chore: add more checks to workflow for debuggin
-rw-r--r--.forgejo/workflows/fetch-webmentions.yml17
1 files changed, 11 insertions, 6 deletions
diff --git a/.forgejo/workflows/fetch-webmentions.yml b/.forgejo/workflows/fetch-webmentions.yml
index 31b4f2d8..ef544cb4 100644
--- a/.forgejo/workflows/fetch-webmentions.yml
+++ b/.forgejo/workflows/fetch-webmentions.yml
@@ -14,24 +14,29 @@ jobs:
- name: Install jq
run: |
- curl https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64 -o /tmp/jq
+ curl -SfL "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64" -o /tmp/jq
chmod +x /tmp/jq
+ /tmp/jq --version
- name: Fetch webmentions
run: |
- curl "https://wm.geedea.pro/api/mentions?filter=www.geedea.pro" | /tmp/jq . > data/webmentions.json 2>&1
- tail -n 10 data/webmentions.json
+ mkdir -p data
+ curl -fL "https://wm.geedea.pro/api/mentions?filter=www.geedea.pro" | /tmp/jq . > data/webmentions.json
+
+ ls -lh data/webmentions.json
+ tail -n 5 data/webmentions.json
- name: Commit if changed
run: |
+ git config user.name "forgejo-actions"
+ git config user.email "forgejo-actions@eltr.ac"
+
git add data/webmentions.json
- if git diff --quiet; then
+ if git diff --cached --quiet; then
echo "No changes"
exit 0
fi
- git config user.name "forgejo-actions"
- git config user.email "forgejo-actions@eltr.ac"
git commit -m "chore: update webmentions"
git push