You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/reusable-workflows.mdc
+1-10Lines changed: 1 addition & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -127,8 +127,8 @@ runs-on: self-hosted
127
127
128
128
Every reusable workflow must:
129
129
- support `workflow_call` (for external callers)
130
-
- support `workflow_dispatch` (for manual testing)
131
130
- expose explicit `inputs` — never rely on implicit context
131
+
- **must NOT** include a `workflow_dispatch` trigger — if manual/interactive dispatch is needed, create a separate self-workflow under `.github/workflows/self-*`
132
132
- **always include a `dry_run` input** (`type: boolean`, `default: false`) so the workflow can be safely tested before applying real changes
133
133
134
134
```yaml
@@ -146,15 +146,6 @@ on:
146
146
secrets:
147
147
DEPLOY_TOKEN:
148
148
required: true
149
-
workflow_dispatch:
150
-
inputs:
151
-
environment:
152
-
required: true
153
-
type: string
154
-
dry_run:
155
-
description: Preview changes without applying them
156
-
type: boolean
157
-
default: false
158
149
```
159
150
160
151
The two modes have opposite goals — design them accordingly:
0 commit comments