diff --git a/src/GraphvizInstaller.ts b/src/GraphvizInstaller.ts index a300926..665001b 100644 --- a/src/GraphvizInstaller.ts +++ b/src/GraphvizInstaller.ts @@ -34,14 +34,6 @@ export class GraphvizInstaller { const graphvizVersion = getInput("ubuntu-graphviz-version"); const libgraphvizdevVersion = getInput("ubuntu-libgraphvizdev-version"); if (skipAptUpdate === false) { - await exec("sudo", ["apt-get", "clean"]); - // https://github.com/actions/runner-images/issues/9733#issuecomment-2074565599 - await exec("sudo", [ - "sudo", - "rm", - "/etc/apt/sources.list.d/microsoft-prod.list", - ]); - await exec("sudo", ["apt-get", "update"]); } await exec("sudo", [ diff --git a/src/__tests__/GraphvizInstaller.spec.ts b/src/__tests__/GraphvizInstaller.spec.ts index 0985d51..455d4ef 100644 --- a/src/__tests__/GraphvizInstaller.spec.ts +++ b/src/__tests__/GraphvizInstaller.spec.ts @@ -162,21 +162,6 @@ describe("class GraphvizInstaller", () => { expect(execSpy.mock.calls).toMatchInlineSnapshot(` [ - [ - "sudo", - [ - "apt-get", - "clean", - ], - ], - [ - "sudo", - [ - "sudo", - "rm", - "/etc/apt/sources.list.d/microsoft-prod.list", - ], - ], [ "sudo", [ @@ -217,21 +202,6 @@ describe("class GraphvizInstaller", () => { expect(execSpy.mock.calls).toMatchInlineSnapshot(` [ - [ - "sudo", - [ - "apt-get", - "clean", - ], - ], - [ - "sudo", - [ - "sudo", - "rm", - "/etc/apt/sources.list.d/microsoft-prod.list", - ], - ], [ "sudo", [ @@ -270,21 +240,6 @@ describe("class GraphvizInstaller", () => { expect(execSpy.mock.calls).toMatchInlineSnapshot(` [ - [ - "sudo", - [ - "apt-get", - "clean", - ], - ], - [ - "sudo", - [ - "sudo", - "rm", - "/etc/apt/sources.list.d/microsoft-prod.list", - ], - ], [ "sudo", [ @@ -323,21 +278,6 @@ describe("class GraphvizInstaller", () => { expect(execSpy.mock.calls).toMatchInlineSnapshot(` [ - [ - "sudo", - [ - "apt-get", - "clean", - ], - ], - [ - "sudo", - [ - "sudo", - "rm", - "/etc/apt/sources.list.d/microsoft-prod.list", - ], - ], [ "sudo", [