Skip to content

Commit 54a3d4d

Browse files
committed
Change to new env var name
1 parent ed089fe commit 54a3d4d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/cache-upload.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defaults:
2222
shell: bash
2323

2424
env:
25-
DEVBOX_ACCESS_TOKEN: ${{ secrets.DEVBOX_ACCESS_TOKEN }}
25+
DEVBOX_API_TOKEN: ${{ secrets.DEVBOX_API_TOKEN }}
2626
DEVBOX_DEBUG: 1
2727

2828
jobs:
@@ -35,10 +35,20 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737

38-
- name: Install devbox
39-
uses: jetify-com/[email protected]
38+
# Build devbox from scratch because released devbox has a bug that prevents
39+
# DEVBOX_API_TOKEN use
40+
- uses: actions/setup-go@v5
4041
with:
41-
enable-cache: true
42+
go-version-file: ./go.mod
43+
- name: Build devbox
44+
run: |
45+
go build -o dist/devbox ./cmd/devbox
46+
sudo mv ./dist/devbox /usr/local/bin/
47+
48+
# - name: Install devbox
49+
# uses: jetify-com/[email protected]
50+
# with:
51+
# enable-cache: true
4252

4353
- run: |
4454
devbox cache upload

0 commit comments

Comments
 (0)