-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add hashFiles to the toolkit #472
Comments
Related to #430 ( |
You can use the env var The hashFiles source code is here @joshmgross @TingluoHuang should we add hashFiles to the toolkit? @thisismydesign today the runner evaluates all expressions. Currently not consumable from javascript action. You can also set an input's default value using an expression. For example actions/checkout uses an expression to set the default repository input. |
Thanks! Would be great for my use case to have access to |
Absolutely. With |
Awesome, that's exactly my use case :) |
Updated the title. @thisismydesign as a workaround you can copy the relevant source code from the link i pasted above. It's just that one file, the only dependency is |
Since I'm writing a JS Action, I'm using folder-hash instead of copying hashFiles.ts. Nonetheless, I'd prefer to have the function available in this toolkit. |
Describe the enhancement
I'm writing an action. Would like to call
${{ hashFiles(...) }}
and${{ runner.OS }}
and get the result from within the action. Is this possible? I understand I could have these as inputs, however the purpose of my action is to simplify that process.Code Snippet
Something along these lines:
index.js
The text was updated successfully, but these errors were encountered: