Skip to content

feat: add path input to initialize and update actions#7

Open
nicomiguelino wants to merge 1 commit into
mainfrom
feat/add-path-input
Open

feat: add path input to initialize and update actions#7
nicomiguelino wants to merge 1 commit into
mainfrom
feat/add-path-input

Conversation

@nicomiguelino
Copy link
Copy Markdown
Collaborator

Summary

  • Add optional path input (defaults to .) to initialize and update actions
  • Enables use in monorepos where the Edge App lives in a subdirectory
  • Existing callers that omit path are unaffected — the default . preserves current behavior

- Add optional `path` input (defaults to `.`) to support monorepos
- Prefix all relative file references and CLI `--path` flags with the input
- Add `working-directory` to `bun install` and `bun run build` steps
- Compute `deploy_path` output in detect step instead of inline expression
- Update README input tables for both actions
@nicomiguelino nicomiguelino requested a review from Copilot May 8, 2026 23:01
@nicomiguelino nicomiguelino marked this pull request as ready for review May 8, 2026 23:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new optional path input (defaulting to .) to the initialize and update composite actions so they can operate on Edge Apps located in subdirectories (e.g., monorepos) without changing behavior for existing callers.

Changes:

  • Add path input to initialize and update actions and use it for build/install working directory and file lookups.
  • Compute a deploy_path output so deploy can target either ${path}/dist (built apps) or ${path} (non-built apps).
  • Document the new path input in the root README.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
initialize/action.yml Adds path input; uses it for dependency install/build, CLI --path flags, and file logging.
update/action.yml Adds path input; uses it for dependency install/build, deploy --path, and manifest logging.
README.md Documents the new path input for both actions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread update/action.yml
Comment on lines +39 to +42
if [ "$HAS_BUILD_STEP" = "true" ]; then
echo "deploy_path=${{ inputs.path }}/dist" >> "$GITHUB_OUTPUT"
else
echo "deploy_path=${{ inputs.path }}" >> "$GITHUB_OUTPUT"
Comment thread initialize/action.yml
Comment on lines +41 to +45
if [ "$HAS_BUILD_STEP" = "true" ]; then
echo "deploy_path=${{ inputs.path }}/dist" >> "$GITHUB_OUTPUT"
else
echo "deploy_path=${{ inputs.path }}" >> "$GITHUB_OUTPUT"
fi
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