Skip to content

Commit

Permalink
Warn that runs.pre doesn't work from local actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref authored Feb 26, 2025
1 parent ebaf9cf commit b7ee9ce
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ runs:

**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).

> [!NOTE]
> `runs.pre` is not supported for local actions.

In this example, the `pre:` action runs a script called `setup.js`:

```yaml
Expand Down

0 comments on commit b7ee9ce

Please sign in to comment.