Skip to content

Commit

Permalink
adjust management of dates6
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Nov 19, 2024
1 parent 29abc09 commit 1c9deb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actions/dates/dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function run() {
const metaParsed = JSON.parse(exisitingMetadataJson); //Record<string string>
const filesModifiedArr = filesModifiedInCommit.split("\n");
const allFilesInGitArr = filesModifiedInCommit.split("\n");
octokit.log.info(
console.log(
`Received ${allFilesInGit.length} all files and ${filesModifiedInCommit.length} modified files`
);

Expand All @@ -40,6 +40,7 @@ async function run() {
...github.context.repo,
path: "metadata.json",
});
console.log(existingMeta);
// commit if the metadata has changed
// https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents
await octokit.rest.repos.createOrUpdateFileContents({
Expand Down

0 comments on commit 1c9deb7

Please sign in to comment.