Skip to content

Commit 3d88ea1

Browse files
Trotttargos
authored andcommitted
build: fix workflow access to git history
Refs: #41466 PR-URL: #41472 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Tierney Cyren <[email protected]>
1 parent b7b0631 commit 3d88ea1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/find-inactive-tsc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Checkout the repo
2020
uses: actions/checkout@v2
2121
with:
22+
fetch-depth: 0
2223
persist-credentials: false
2324

2425
- name: Clone nodejs/TSC repository

tools/find-inactive-tsc.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ async function moveTscToEmeritus(peopleToMove) {
211211
// only been on the TSC for a week and therefore hasn't attended any meetings.
212212
const tscMembersAtEnd = await getTscFromReadme();
213213

214-
await runGitCommand(`git checkout 'HEAD@{${SINCE}}' -- README.md`);
214+
const startCommit = await runGitCommand(`git rev-list -1 --before '${SINCE}' HEAD`);
215+
await runGitCommand(`git checkout ${startCommit} -- README.md`);
215216
const tscMembersAtStart = await getTscFromReadme();
216217
await runGitCommand('git reset HEAD README.md');
217218
await runGitCommand('git checkout -- README.md');

0 commit comments

Comments
 (0)