Skip to content

Commit 0b1ea41

Browse files
committed
Add initial devbox action
1 parent 492a871 commit 0b1ea41

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'devbox installer'
2+
description: 'Install Devbox in your CICD workflow'
3+
inputs:
4+
project-path: # id of input
5+
description: 'Project path to devbox.json. Default to the root directory of the repository.'
6+
default: '.'
7+
runs:
8+
using: "composite"
9+
steps:
10+
- name: Install devbox
11+
shell: bash
12+
run: |
13+
curl -fsSL https://get.jetpack.io/devbox | FORCE=1 bash
14+
- name: Install nix and devbox packages
15+
shell: bash
16+
run: |
17+
NIX_INSTALLER_NO_CHANNEL_ADD=1
18+
devbox shell --config=${{ inputs.project-path }} -- echo "Installing nix..." || true
19+
source /home/runner/.nix-profile/etc/profile.d/nix.sh
20+
devbox shell --config=${{ inputs.project-path }} -- echo "Installing packages..."

0 commit comments

Comments
 (0)