Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Feat): Add setup-trunk action #225

Merged
merged 6 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ runs:

- name: Locate trunk
shell: bash
run: ${GITHUB_ACTION_PATH}/locate_trunk.sh
run: ${GITHUB_ACTION_PATH}/setup/locate_trunk.sh

- name: Determine check mode
shell: bash
Expand Down
24 changes: 24 additions & 0 deletions setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Trunk Check
author: trunk.io
description: The official trunk.io GitHub action to install trunk

inputs:
trunk-path:
description:
Path to Trunk Launcher. If not provided, we'll look for it the repo root, `.trunk/bin` and
`tools/`. If it can't be found anywhere and is not provided explicitly, we'll download it on
demand.
required: false

branding:
icon: check
color: green

runs:
using: composite
steps:
- name: Locate trunk
shell: bash
run: ${GITHUB_ACTION_PATH}/locate_trunk.sh
env:
INPUT_TRUNK_PATH: ${{ inputs.trunk-path }}
File renamed without changes.
Loading