Skip to content

Commit 4f8e7d2

Browse files
authored
Warn that runs.pre doesn't work from local actions (#36538)
1 parent ebaf9cf commit 4f8e7d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ runs:
172172

173173
**Optional** Allows you to run a script at the start of a job, before the `main:` action begins. For example, you can use `pre:` to run a prerequisite setup script. The runtime specified with the [`using`](#runsusing-for-javascript-actions) syntax will execute this file. The `pre:` action always runs by default but you can override this using [`runs.pre-if`](#runspre-if).
174174

175+
> [!NOTE]
176+
> `runs.pre` is not supported for local actions.
177+
175178
In this example, the `pre:` action runs a script called `setup.js`:
176179

177180
```yaml

0 commit comments

Comments
 (0)