Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Attachment guard: start a runner only when a post links an uploaded file

islandmed95453f331758
diff --git a/.github/workflows/attachment-guard.yml b/.github/workflows/attachment-guard.yml
index 9f5147ec..59555684 100644
--- a/.github/workflows/attachment-guard.yml
+++ b/.github/workflows/attachment-guard.yml
@@ -23,6 +23,11 @@ permissions:
jobs:
guard:
+ # Only start a runner when the post links an uploaded file (the script then checks the file type).
+ if: >-
+ contains(github.event.comment.body, '/files/') ||
+ contains(github.event.issue.body, '/files/') ||
+ contains(github.event.discussion.body, '/files/')
runs-on: ubuntu-24.04
timeout-minutes: 5
steps: