From ca8acdf9eb26bf94b127e6e3ebdf500bc0ef1133 Mon Sep 17 00:00:00 2001 From: pat-trunk-io Date: Wed, 28 Feb 2024 10:33:56 -0800 Subject: [PATCH] Setup trunk instructions (#228) --- readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/readme.md b/readme.md index 09c0ed94..ad131c1f 100644 --- a/readme.md +++ b/readme.md @@ -321,6 +321,23 @@ requests". If you have checks that run on pull requests, you will need to supply the upgrade action to run those checks. For more information, see [create-pull-request](https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs). +## Automatic trunk setup + +To install trunk on your CI machine + +```yaml +jobs: + trunk_install: + name: Install trunk + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + # >>> After this step, trunk is available as the env var TRUNK_PATH <<< + - name: Trunk install + uses: trunk-io/trunk-action/setup@v1 +``` + ## Feedback Join the [Trunk Community Slack][slack]. ❤️