We provide a number of tools for inspecting the results of actions that run in the background and wouldn’t otherwise surface their errors. Every action execution is logged. We consider an action execution to have failed if it has a non-zero exit code.Documentation Index
Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-flaky-tests-new-monitors.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
trunk actions history <action_id> gives a history of the recent runs of an action and whether it succeeded. You can control how many recent runs to show with the --count flag (for example, trunk actions history trunk-upgrade-available --count=10). When available, a full stacktrace is written to a file and made available.
Failed action executions will also produce a notification so that background failures are periodically surfaced to the user.
You can also inspect action logs at .trunk/out/actions/<action_id>/.
We recommend running actions manually when you develop them to verify that they work correctly.
Output Level
To see a more verbose output when running trunk actions, particularly from git-hooks, you can add the following to yourtrunk.yaml: