Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrevert add parity with wrangler action #312

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

Maximo-Guk
Copy link
Member

@Maximo-Guk Maximo-Guk commented Oct 31, 2024

Unreverts #303

Tested pipelines here:

  • Pipeline shows all outputs if wrangler version >=3.81.0
  • Pipeline falls back to only outputting deployment-url and deployment-alias-url if wrangler version doesn't output metadata file

Moves wrangler output to tmpdir rather than /opt/ since /opt/ is owned by root.

@Maximo-Guk Maximo-Guk requested review from a team as code owners October 31, 2024 13:16
@Maximo-Guk Maximo-Guk changed the title Maximo/unrevert add parity with wrangler action Unrevert add parity with wrangler action Oct 31, 2024
src/index.ts Outdated Show resolved Hide resolved
@@ -33,6 +36,7 @@ const config = {
COMMANDS: getMultilineInput("command"),
QUIET_MODE: getBooleanInput("quiet"),
PACKAGE_MANAGER: getInput("packageManager"),
WRANGLER_OUTPUT_DIR: `${join(tmpdir(), "wranglerArtifacts")}`,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use tmpdir for wranglerArtifacts

src/index.ts Show resolved Hide resolved
@Maximo-Guk Maximo-Guk force-pushed the maximo/unrevert-add-parity-with-wrangler-action branch 3 times, most recently from 7f2d331 to 29516d3 Compare November 1, 2024 17:02
…d by root.

- Github self hosted runners may not have permissions to write to /opt/

- Also fallsback to trying to extract the deployment-url and deployment-alias-url from stdout when WRANGLER_OUTPUT_DIR is not specified
@Maximo-Guk Maximo-Guk force-pushed the maximo/unrevert-add-parity-with-wrangler-action branch from 29516d3 to 122ee5c Compare November 1, 2024 18:29
@Maximo-Guk Maximo-Guk merged commit 4f4ff59 into main Nov 1, 2024
4 checks passed
@Maximo-Guk Maximo-Guk deleted the maximo/unrevert-add-parity-with-wrangler-action branch November 1, 2024 18:40
@github-actions github-actions bot mentioned this pull request Nov 1, 2024
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