diff --git a/.github/workflows/count-task-completion.yml b/.github/workflows/count-task-completion.yml index c65404487..f052651ce 100644 --- a/.github/workflows/count-task-completion.yml +++ b/.github/workflows/count-task-completion.yml @@ -29,22 +29,20 @@ jobs: uses: actions/setup-node@v4 with: node-version: 14.15.3 - - name: get git version - run: git -v - # - name: Install npm dependencies - # run: npm i - # - name: Count students - # run: npm run pmc count:student - # - name: Count task completion - # run: node scripts/count.js - # - name: Commit changes - # run: | - # git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - # git config --local user.name "github-actions[bot]" - # git add . - # git commit -m "chore: update counted task completion" - # - uses: ad-m/github-push-action@master - # with: - # repository: ${{ env.REPO_NAME }} - # github_token: ${{ secrets.GH_TOKEN }} - # branch: ${{ env.REPO_BRANCH }} + - name: Install npm dependencies + run: npm i + - name: Count students + run: npm run pmc count:student + - name: Count task completion + run: node scripts/count.js + - name: Commit changes + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add . + git commit -m "chore: update counted task completion" + - uses: ad-m/github-push-action@master + with: + repository: ${{ env.REPO_NAME }} + github_token: ${{ secrets.GH_TOKEN }} + branch: ${{ env.REPO_BRANCH }}