name: 'Collect Stats' on: schedule: # * is a special character in YAML so you have to quote this string - cron: '0 12 * * *' env: node_version: 14 jobs: stat: runs-on: ubuntu-latest steps: # Check out code using git - uses: actions/checkout@v2 # Install Node 14 - uses: actions/setup-node@v1 with: version: 14 - run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts - run: node scripts/stats/index.js env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: '[ci] collect stats' branch: ${{ github.head_ref }}