Replies: 2 comments
-
|
here is .yaml with imrovements |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
To improve a GitHub Action generated by Copilot, you can: Review the logic carefully – Copilot suggestions may not cover all edge cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
General
Discussion Details
I had a repo on Azure DevOps Services (ADS). I had an ADS YAML file that deployed my ASP.NET application to a web server I use. It worked OK for some years, but it was having problems recently, and since I've been used to using GitHub, I felt it was time to migrate it to GitHub. So, I migrated it last month to GitHub.
Starting with the YAML file I used on ADS, I've modified it to work here using GitHub Actions. I began yesterday, then completed it today. By that I mean that it ran to completion, without any errors. To help me with this I used GitHub Copilot to assist me with the YAML. The original ADS YAML file was one job. GitHub Copilot's version has two jobs,
buildanddeploy. Please also note that the web service I'm using is on a Windows Server, so I specifyruns-on: windows-latestin the workflow file. As much as I like using GitHub Copilot, I think it has duplicated some tasks between thebuildanddeployjobs. For example, both jobs do adotnet build, which doesn't make sense to me. If I'm correct that GitHub Copilot has duplicated tasks unnecessarily, how do I simply it? Here is the YAML file:Beta Was this translation helpful? Give feedback.
All reactions