-
Notifications
You must be signed in to change notification settings - Fork 181
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
chore: add nuget config for csharp sdks #3621
Conversation
}).replaceAll("\\{", "{"); | ||
const ghDir = join(this.absolutePathToOutputDirectory, RelativeFilePath.of(".github/workflows")); | ||
await mkdir(ghDir, { recursive: true }); | ||
await writeFile(join(ghDir, RelativeFilePath.of("ci.yml")), githubWorkflow); |
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.
how do we make sure this only happens when the generator is in github
mode?
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.
This is already the case!
The template has a conditional that's if the publish block is present, which is a GitHub output block
I tested it and it works well, the whole block is added or removed
Check the template evaluation a couple lines above
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.
Getting the config: https://github.com/fern-api/fern/pull/3621/files#diff-2e2d2dd0dc8bd56571b1e52014eab736a44e2dc8f6d0f4306c98f7ababb197daR44-R53
The template conditional: https://github.com/fern-api/fern/pull/3621/files#diff-cc3e7dbc9ed09e0f85aedca78c522a60a73836e9c33076c82968d8333c1f08cdR27-R48
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.
🙏
No description provided.