diff options
| author | eltrac <hi@eltr.ac> | 2026-03-14 18:58:47 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-14 18:58:47 +0800 |
| commit | dceaa0d9bf04b6e9cb3ad46bb4dba62d8a01c6bf (patch) | |
| tree | 012c5c95829ed8cf2752eaf90253b10c04b1a341 | |
| parent | 85c4ab44f5a21f4420a92982ce419734abfa6a98 (diff) | |
fix(CI): remove silent flags
| -rw-r--r-- | .forgejo/workflows/fetch-webmentions.yml | 8 |
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 |
