Skip to content

Commit

Permalink
Update automation to detect out of date tools
Browse files Browse the repository at this point in the history
We were using the wrong attribute to get the toolʻs folder name
  • Loading branch information
liliakai committed Nov 11, 2024
1 parent 9f7ba1f commit b143e4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/last-updated.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ Promise.all(publishedTools.map(function(tool) {
async function isUpdated(tool) {
// search git history for commits starting with GITBOOK-tool-slug-{number}:
// and find the most recent commit date
const { stdout, stderr } = await exec(`git log --since="1 month ago" --grep="GITBOOK-${tool.slug}-" --format=%cd --date=short | head -n 1`);
const cmd = `git log --since="1 month ago" --grep="GITBOOK-${tool.filename}-" --format=%cd --date=short | head -n 1`;
const { stdout, stderr } = await exec(cmd);
if (stderr) {
console.error(stderr);
}
Expand Down

0 comments on commit b143e4c

Please sign in to comment.