[Core feature request] Defaults Parameters
See original GitHub issueWhat feature do you need?
defaults
parameter for workflows and jobs.
Do you have an example usage?
defaults:
run:
shell: bash
working-directory: scripts
Is there a workaround for not having this feature? If yes, please describe it. The custom arguments for either workflows or jobs do not work in this case since its a nested map and custom arguments only support one level of nesting at the moment.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Request Features in ASP.NET Core | Microsoft Learn
Learn about web server implementation details related to HTTP requests and responses that are defined in interfaces for ASP.NET Core.
Read more >named arguments and default parameter values · Issue #1189 ...
True, specifying default values should be fully orthogonal to whether a parameter can be provided by position, keyword, or both. This request ......
Read more >Request Features And ASP.NET Core 3 | Khalid Abuhakmeh
NET Core has default features that include functions around authentication, request accessors, file manipulation, and session management.
Read more >Requests default parameters - python - Stack Overflow
In my case, I'm writing an SDK, and I wanted to have a way to set default headers during testing without having to...
Read more >Default parameters - JavaScript - MDN Web Docs
Default function parameters allow named parameters to be initialized with default values if no value or undefined is passed.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool! Let me close the issue for now, and we can always revisit the topic if there’s a need.
Yes, that would fit my use case!
I think I was also slightly confused since I didn’t realize you could add parameters, such as
working-directory
to each step and thought that they only were in thatdefaults
block, but thinking back on that, it wouldn’t make too much sense if that was the case.I can abandon/cancel #344 since it should no longer be needed.