Skip to content

Use random UUID when creating wrangler artifacts output directory#318

Merged
Maximo-Guk merged 1 commit intomainfrom
maximo/use-random-uuid-for-wrangler-artifacts-dir
Nov 5, 2024
Merged

Use random UUID when creating wrangler artifacts output directory#318
Maximo-Guk merged 1 commit intomainfrom
maximo/use-random-uuid-for-wrangler-artifacts-dir

Conversation

@Maximo-Guk
Copy link
Member

@Maximo-Guk Maximo-Guk commented Nov 5, 2024

Addresses #317,

Problem: If a user runs wrangler-action multiple times we'll return the wrong deployment-url, as we only return the first detailed deployment instance from the artifact file.

Solution: Let's generate a new output directory with a randomUUID in the tmpDir, so that when the action is ran multiple times, we use the artifacts from that run, opposed to the artifacts from a previous run.

Tested here:
Returns correct output for first run
Returns correct output for second run

@Maximo-Guk Maximo-Guk requested review from a team as code owners November 5, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants