summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.forgejo/workflows/fetch-webmentions.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.forgejo/workflows/fetch-webmentions.yml b/.forgejo/workflows/fetch-webmentions.yml
index 41c5a59e..31b4f2d8 100644
--- a/.forgejo/workflows/fetch-webmentions.yml
+++ b/.forgejo/workflows/fetch-webmentions.yml
@@ -14,15 +14,18 @@ jobs:
- name: Install jq
run: |
- curl -sL https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64 -o /tmp/jq
+ curl https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64 -o /tmp/jq
chmod +x /tmp/jq
- name: Fetch webmentions
run: |
- curl -sL "https://wm.geedea.pro/api/mentions?filter=www.geedea.pro" | /tmp/jq . > data/webmentions.json 2>&1
+ curl "https://wm.geedea.pro/api/mentions?filter=www.geedea.pro" | /tmp/jq . > data/webmentions.json 2>&1
+ tail -n 10 data/webmentions.json
- name: Commit if changed
run: |
+ git add data/webmentions.json
+
if git diff --quiet; then
echo "No changes"
exit 0
@@ -30,6 +33,5 @@ jobs:
git config user.name "forgejo-actions"
git config user.email "forgejo-actions@eltr.ac"
- git add data/webmentions.json
git commit -m "chore: update webmentions"
git push