Skip to content

Commit 3208f94

Browse files
committed
ci(publish): skip lfs for preview checkouts
1 parent b9734d6 commit 3208f94

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
- uses: actions/checkout@v4
191191
if: steps.gate.outputs.skip != 'true'
192192
with:
193-
lfs: true
193+
lfs: ${{ needs.context.outputs.trigger == 'release' }}
194194
- uses: depot/setup-action@v1
195195
if: steps.gate.outputs.skip != 'true'
196196
- name: Log in to ghcr.io
@@ -253,7 +253,7 @@ jobs:
253253
steps:
254254
- uses: actions/checkout@v4
255255
with:
256-
lfs: true
256+
lfs: ${{ needs.context.outputs.trigger == 'release' }}
257257
- name: Compute build mode
258258
id: mode
259259
run: |
@@ -316,7 +316,7 @@ jobs:
316316
with:
317317
# Need history for tag operations in the release tail.
318318
fetch-depth: 0
319-
lfs: true
319+
lfs: ${{ needs.context.outputs.trigger == 'release' }}
320320
- run: corepack enable
321321
- uses: actions/setup-node@v4
322322
with:

rivetkit-rust/packages/rivetkit-core/src/serverless.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ fn route_path(base_path: &str, url: &str) -> Result<String> {
494494
fn parse_start_headers(headers: &HashMap<String, String>) -> Result<StartHeaders> {
495495
Ok(StartHeaders {
496496
endpoint: required_header(headers, "x-rivet-endpoint")?,
497-
token: required_header(headers, "x-rivet-token"),
497+
token: required_header(headers, "x-rivet-token")?,
498498
pool_name: required_header(headers, "x-rivet-pool-name")?,
499499
namespace: required_header(headers, "x-rivet-namespace-name")?,
500500
})

0 commit comments

Comments
 (0)