-
Notifications
You must be signed in to change notification settings - Fork 930
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
Implement env context, hashfiles, expression for input's default and post-if
for wrapper action
#120
Conversation
36e1236
to
b1009c0
Compare
Clarifying that this isn't prototyping. This is implementing and it's time critical for GA. This needs land with production level quality code. |
Is this ready for review? If so, we might not be able to depend on eric and find another reviewer. Eric is out. |
post-if
for wrapper action
960c7fb
to
dfa8ff6
Compare
@@ -83,6 +85,18 @@ | |||
], | |||
"string": {} | |||
}, | |||
"input-default-context": { |
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.
May want to consider the name "string-default-context"
envContext[name] = new StringContextData(value); | ||
#else | ||
var envContext = ExpressionValues["env"] as CaseSensitiveDictionaryContextData; | ||
envContext[name] = new StringContextData(value); |
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.
super nit: can you pull out the envContext[name] line so we don't have to duplicate it.
@@ -22,7 +22,7 @@ | |||
"input": { | |||
"mapping": { | |||
"properties": { | |||
"default": "string" | |||
"default": "input-default-context" |
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.
shouldn't we support bool and numbers as well?
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.
with
is string in the workflow schema, so the default should be string as well.
public abstract ActionExecutionType ExecutionType { get; } | ||
|
||
public abstract bool HasCleanup { get; } | ||
|
||
public string CleanupCondition |
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.
Super nit:
I think you can do private string CleanupCondition{ get; set; } = $"{Constants.Expressions.Always}()";
023b4ce
to
c7123c7
Compare
c7123c7
to
d6508f1
Compare
Add runner group option
hashFiles()
expression function:https://github.com/github/pe-actions-runtime/issues/85
env
context for workflow variables:https://github.com/github/pe-actions-runtime/issues/86
allow expression for input's default value in
action.yml
:https://github.com/github/pe-actions-runtime/issues/112
allow wrapper action definition
post-if
:https://github.com/github/pe-actions-runtime/issues/113