-
Notifications
You must be signed in to change notification settings - Fork 154
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
Support custom variable interpolation in payload JSON file #150
Comments
Hi @adaminglehart, thanks for sharing the suggestions. Our team will look into it sometime soon. If anyone has ideas or thoughts on this, please share them by posting comments here 👋 |
hi @seratch, just checking if your team had a chance to review this proposal? Like I mentioned, I'm happy to do the implementation, I'd just want to have an idea whether or not it would be accepted first |
@adaminglehart Thanks for the reminder. Some members in our team are interested in this enhancement! I myself have a little hesitation to introduce a custom mechanism in addition to GitHub Actions platform features. My concern here is that our own feature addition may become a technical debt in the future when GH Actions adds something similar. Also, I am wondering if the implementation can be simple and easy to maintain in the long run. If you have already implemented something similar in the past, could you share the code with us first? With that, we may be more confident on this enhancement. |
It looks like this PR might cover this case. |
We tackled this issue in #200. |
Release v1.24.0 is out! |
Description
With the current implementation, it seems like the only variables that can be interpolated into the message payload are the ones from the github context object. It'd be really helpful to be able to pass in custom variables besides just what's available in there. Ideally you'd be able to just use anything in the
env
object but it doesn't seem like the github actions SDK allows you to access that? In that case I'd propose allowing something like avars
input that, if provided, will be accessible in your payload. Something like:action.yml
my-payload.json
I'm happy to take a pass at the implementation but wanted to verify that this would be of interest first
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: