Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mqxx committed Feb 6, 2024
1 parent c3f8357 commit d061f82
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import * as actionsCore from '@actions/core';
import { fetchManifestData } from './fetch_manifest_data.ts';
import * as actionsArtifact from '@actions/artifact';

const inputManifestURL = actionsCore.getInput('manifest-url');
const artifact = new actionsArtifact.DefaultArtifactClient();

// import { fetchManifestData } from './fetch_manifest_data.ts';

// const inputManifestURL = actionsCore.getInput('manifest-url');

(async () => {
console.log((await fetchManifestData(inputManifestURL)).latest);
// console.log((await fetchManifestData(inputManifestURL)).latest);

const artifacts = await artifact.listArtifacts({latest: true})
artifacts.artifacts.forEach(({createdAt, id, name, size}) => {
console.log(createdAt, id, name, size);
})
})()

0 comments on commit d061f82

Please sign in to comment.