feat: add path input to initialize and update actions#7
Open
nicomiguelino wants to merge 1 commit into
Open
Conversation
- 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
Contributor
There was a problem hiding this comment.
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
pathinput toinitializeandupdateactions and use it for build/install working directory and file lookups. - Compute a
deploy_pathoutput so deploy can target either${path}/dist(built apps) or${path}(non-built apps). - Document the new
pathinput 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 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 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pathinput (defaults to.) toinitializeandupdateactionspathare unaffected — the default.preserves current behavior