@@ -23,7 +23,7 @@ var copilotSetupLog = logger.New("cli:copilot_setup")
2323func getActionRef (ctx context.Context , actionMode workflow.ActionMode , version string , resolver workflow.SHAResolver ) string {
2424 if actionMode .IsRelease () && version != "" && version != "dev" {
2525 if resolver != nil {
26- sha , err := resolver .ResolveSHA (ctx , "github/gh-aw/ actions/setup-cli" , version )
26+ sha , err := resolver .ResolveSHA (ctx , "github/gh-aw- actions/setup-cli" , version )
2727 if err == nil && sha != "" {
2828 return fmt .Sprintf ("@%s # %s" , sha , version )
2929 }
@@ -51,10 +51,7 @@ func generateCopilotSetupStepsYAML(ctx context.Context, actionMode workflow.Acti
5151
5252 if actionMode .IsRelease () || actionMode .IsAction () {
5353 // Determine the action repo based on mode
54- actionRepo := "github/gh-aw/actions/setup-cli"
55- if actionMode .IsAction () {
56- actionRepo = "github/gh-aw-actions/setup-cli"
57- }
54+ actionRepo := "github/gh-aw-actions/setup-cli"
5855 return fmt .Sprintf (`name: "Copilot Setup Steps"
5956
6057# This workflow configures the environment for GitHub Copilot Agent with gh-aw MCP server
@@ -274,10 +271,7 @@ func renderCopilotSetupUpdateInstructions(ctx context.Context, filePath string,
274271 actionRef := getActionRef (ctx , actionMode , version , resolver )
275272
276273 if actionMode .IsRelease () || actionMode .IsAction () {
277- actionRepo := "github/gh-aw/actions/setup-cli"
278- if actionMode .IsAction () {
279- actionRepo = "github/gh-aw-actions/setup-cli"
280- }
274+ actionRepo := "github/gh-aw-actions/setup-cli"
281275 fmt .Fprintln (os .Stderr , " - name: Checkout repository" )
282276 fmt .Fprintln (os .Stderr , " uses: actions/checkout@v6" )
283277 fmt .Fprintf (os .Stderr , " - name: Install gh-aw extension\n " )
@@ -341,10 +335,7 @@ func upgradeSetupCliVersionInContent(ctx context.Context, content []byte, action
341335 }
342336
343337 actionRef := getActionRef (ctx , actionMode , version , resolver )
344- actionRepo := "github/gh-aw/actions/setup-cli"
345- if actionMode .IsAction () {
346- actionRepo = "github/gh-aw-actions/setup-cli"
347- }
338+ actionRepo := "github/gh-aw-actions/setup-cli"
348339 newUses := actionRepo + actionRef
349340
350341 // Replace the uses: line, stripping any surrounding quotes in the process.
0 commit comments