diff --git a/.github/workflows/count-task-completion.yml b/.github/workflows/count-task-completion.yml index f052651ce..aa8d48e09 100644 --- a/.github/workflows/count-task-completion.yml +++ b/.github/workflows/count-task-completion.yml @@ -23,6 +23,7 @@ jobs: with: repository: ${{ env.REPO_NAME }} ref: ${{ env.REPO_BRANCH }} + fetch-depth: 0 # token: ${{ secrets.GH_TOKEN }} persist-credentials: false - name: Install Node.js @@ -32,7 +33,7 @@ jobs: - name: Install npm dependencies run: npm i - name: Count students - run: npm run pmc count:student + run: npm run pmc count:student git - name: Count task completion run: node scripts/count.js - name: Commit changes diff --git a/.knosys/scripts/command/pmc/count.js b/.knosys/scripts/command/pmc/count.js index 4bb371611..08dac6170 100644 --- a/.knosys/scripts/command/pmc/count.js +++ b/.knosys/scripts/command/pmc/count.js @@ -87,8 +87,6 @@ function resolveTask({ rewardDeadline, studentRewardPatches, readingModifiedTime } function countStudents(readingModifiedTimeBy = getOsType() === 'Linux' ? 'fs' : 'git') { - console.log(`[KNOSYS_INFO] current OS is:`, getOsType()); - const MEMBER_ROOT = joinPath(repoRoot, 'members'); const taskMetadata = { ...readTaskMetadata(), readingModifiedTimeBy };