Skip to content

Commit

Permalink
Pass api token to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhincore committed Sep 20, 2024
1 parent dc90407 commit 4880f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ jobs:
- name: build
env:
BASE_PATH: "/${{ github.event.repository.name }}"
LIZZY_API_TOKEN: ${{ secrets.LIZZY_API_TOKEN }}
run: pnpm build

- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion src/lib/server/lizzy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async function fetchLizzy(path: string, init?: RequestInit) {

if (!response.ok) {
const body = await response.text();
throw new Error("Failed to fetch Lizzy: " + body, { cause: response });
throw new Error("Failed to fetch Lizzy: " + body, { cause: { ...response } });
}
return response;
}
Expand Down

0 comments on commit 4880f62

Please sign in to comment.