@@ -182,31 +182,35 @@ For additional information about transpiled action code, see
182182| ` -h ` , ` --help ` | Display help information |
183183| ` -V ` , ` --version ` | Display version information |
184184
185- ### ` local-action run <path> <logic entrypoint> <dotenv file> `
186-
187- | Argument | Description |
188- | ------------------ | ------------------------------------------------------ |
189- | ` path ` | Path to the local action directory |
190- | | Example: ` /path/to/action.yml ` |
191- | ` logic entrypoint ` | Action logic entrypoint (relative to action directory) |
192- | | Example: ` src/main.ts ` |
193- | ` dotenv file ` | Path to the local ` .env ` file for action inputs |
194- | | Example: ` /path/to/.env ` |
195- | | See the example [ ` .env.example ` ] ( .env.example ) |
185+ ### ` local-action run <path> <logic entrypoint> <dotenv file> [--pre <pre entrypoint>] [--post <post entrypoint>] `
186+
187+ | Argument | Description |
188+ | -------------------------- | ------------------------------------------------------------------- |
189+ | ` path ` | Path to the local action directory |
190+ | | Example: ` /path/to/action.yml ` |
191+ | ` logic entrypoint ` | Action logic entrypoint (relative to action directory) |
192+ | | Example: ` src/main.ts ` |
193+ | ` dotenv file ` | Path to the local ` .env ` file for action inputs |
194+ | | Example: ` /path/to/.env ` |
195+ | | See the example [ ` .env.example ` ] ( .env.example ) |
196+ | ` --pre <pre entrypoint> ` | (Optional) ` pre ` command entrypoint (relative to action directory) |
197+ | | Example: ` pre/main.ts ` |
198+ | ` --post <post entrypoint> ` | (Optional) ` post ` command entrypoint (relative to action directory) |
199+ | | Example: ` post/main.ts ` |
196200
197201Examples:
198202
199203``` bash
200- local-action run /path/to/typescript-action src/main.ts .env
204+ local-action run /path/to/typescript-action src/main.ts .env --pre pre/main.ts --post post/main.ts
201205
202206# The `run` action is invoked by default as well
203- local-action /path/to/typescript-action src/main.ts .env
207+ local-action /path/to/typescript-action src/main.ts .env --pre pre/main.ts --post post/main.ts
204208```
205209
206210#### Output
207211
208212``` console
209- $ local-action run /path/to/typescript-action src/main.ts .env
213+ $ local-action run /path/to/typescript-action src/main.ts .env --pre pre/main.ts --post post/main.ts
210214 _ _ _ ____ _
211215 / \ ___| |_(_) ___ _ __ | _ \ ___| |__ _ _ __ _ __ _ ___ _ __
212216 / _ \ / __| __| |/ _ \| '_ \ | | | |/ _ \ '_ \| | | |/ _` |/ _` |/ _ \ '__|
0 commit comments