Skip to content

Commit

Permalink
adjust management of dates7
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Nov 19, 2024
1 parent 1c9deb7 commit e5ebc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/dates/dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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({
...github.context.repo,
path: "metadata.json",
message: "Automated Update of metadata.json with latest file dates",
content: Buffer.from(stringified).toString("base64"),
sha: existingMeta.sha,
sha: existingMeta.data.sha,
committer: {
name: "github-actions[bot]",
email: "[email protected]",
Expand Down

0 comments on commit e5ebc7f

Please sign in to comment.