-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat: allow overriding source.path
in remote actions (when using source.repository
)
#6750
Conversation
ca72612
to
a6bcbec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one tiny nit on a sentence in the docs.
@@ -44,11 +44,9 @@ A description of the action. | |||
|
|||
By default, the directory where the action is defined is used as the source for the build context. | |||
|
|||
You can override this by setting either `source.path` to another (POSIX-style) path relative to the action source directory, or `source.repository` to get the source from an external repository. | |||
You can override directory that is used for the build context by setting `source.path`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can override directory that is used for the build context by setting `source.path`. | |
You can override the directory that is used for the build context by setting `source.path`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for spotting this, I have applied your suggestion ✅
…ource.repository`)
a6bcbec
to
dbb75e2
Compare
What this PR does / why we need it:
Allow overriding
source.path
in remote actions (when usingsource.repository
).This is useful when an action source path needs to be a subdirectory in a remote repository.
Special notes for your reviewer:
This feature already was working, I just lifted the limitation in the validation code and added a test, and updated docs.
See also Discord thread: https://discord.com/channels/817392104711651328/1320775997880144005/1320775997880144005