How do you setup Sampler to hook into Github? #473
Replies: 1 comment
-
I've reviewed all of the Youtube Demos of Sampler, but I haven't seen any implementation guidance for using Sampler.GithubTasks. The help documentation mentions: After reviewing the Youtube Demos from PSConfEU I was able to see that some configuration lines in the YAML are applicable, but I can find no supporting documentation that indicates which configuration parameters are available. Additionally, the Filling out this information does not have an affect on the Task running. I looked through There is also an indicator that the build Task relies on an ENV variable, but it doesn't define what it should be. I also found: https://dsccommunity.org/blog/updating-sampler-github-tasks/ through a Google search which indicates there was a recent change to using PowershelForGithub as the interface for Github. If Sampler is using PowershellForGithub, the apparent configuration for associating a PAT is handled by the Module PowershellForGithub via Set-GithubConfiguration. The module the handles then management of secrets internally, as opposed to an env variable, or at least I can find no indication that it associates a Token with an env as a result of Set-GithubConfiguration. PowershellFotGithub also indicates that you are able to pass at token in as a plain-text value via PSDefaultParameters, both methods however are seemingly inoperable with how New-Release.GitHub.build.ps1 expects the token to be passed. The migration to the MS module from whatever inbuilt might explain this, but I wanted to point out the discrepancy. I might be missing something though I'm learning 10 new thing at once ha. |
Beta Was this translation helpful? Give feedback.
-
How do you setup Sampler to hook into Github?
I've gotten as far as generating a SimpleModule - and using
./build.ps1 -ResolveDependency
.I am having trouble understanding where I should go to look for next steps.
Is there a resource that explains this process that I am missing?
Beta Was this translation helpful? Give feedback.
All reactions