cloudflare / cloudflare/wrangler-action

Version aliased preview URL is not passed to outputs

Open
#384 4 comments 14 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.9k
Forks
214
PR merge metrics
No merged PRs in 30d

Description

I'd like to use aliased URL of uploaded Worker version but only the standard hashed one is available in outputs.

```yaml
- name: 🚀 Deploy ${{ matrix.name }}
uses: cloudflare/wrangler-action@v3
id: deploy
with:
workingDirectory: apps/${{ matrix.app }}
command: versions upload --preview-alias pr-${{ github.event.pull_request.number }} --message "Preview deployment for PR ${{ github.event.pull_request.number }}"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

- name: 📬 Update deployment status
uses: marocchino/sticky-pull-request-comment@v2
with:
append: true
# Only `deployment-url` is available
message: |
| ${{ matrix.name }} | ${{ steps.deploy.outputs.deployment-url }} |
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the workflow shown in the issue using the versions upload command with --preview-alias and inspect how the action exposes deployment-url. Trace the output handling and confirm that the aliased preview URL is available to the following step alongside the standard hashed URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, typescript
Domain
ci-cd
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.