Skip to content

Commit

Permalink
fix: remove old files
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Nov 14, 2023
1 parent 96ad42b commit 7f0ec98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/fix_redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ func (c *Controller) createFixRedirectPR(ctx context.Context, pkgName string, cf
}

pkgDir := filepath.Join("pkgs", filepath.FromSlash(redirect.NewPackageName))
oldPkgDir := filepath.Join("pkgs", filepath.FromSlash(pkgName))
branch := fmt.Sprintf("aqua-registry-updater-transfer-%s-", pkgName)
if err := c.exec(ctx, "ghcp", "commit",
"-r", fmt.Sprintf("%s/%s", c.param.RepoOwner, c.param.RepoName),
"-b", branch, "-m", prTitle,
"-d", fmt.Sprintf("%s,%s", filepath.Join(oldPkgDir, "pkg.yaml"), filepath.Join(oldPkgDir, "registry.yaml")),
"registry.yaml",
filepath.Join(pkgDir, "registry.yaml"),
filepath.Join(pkgDir, "pkg.yaml")); err != nil {
Expand Down

0 comments on commit 7f0ec98

Please sign in to comment.