Skip to content

Commit 136d9d5

Browse files
ci: let wrangler auto-detect branch name from GitHub Actions env vars
Wrangler now reads GITHUB_HEAD_REF/GITHUB_REF_NAME natively (cloudflare/workers-sdk#12983), so we no longer need to manually derive and pass --name to the preview deploy command.
1 parent 50f5567 commit 136d9d5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
VITE_MAPBOX_TOKEN: ${{ secrets.VITE_MAPBOX_TOKEN }}
3939
run: |
4040
set +e
41-
preview_name=$(echo "${{ github.head_ref }}" | cut -c1-53)
42-
output=$(npm run deploy:preview -- --name "$preview_name" 2>&1)
41+
output=$(npm run deploy:preview 2>&1)
4342
exit_code=$?
4443
set -e
4544
echo "$output"

0 commit comments

Comments
 (0)