Update data/octokit-stats.csv #1634
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update data/octokit-stats.csv | |
| "on": | |
| schedule: | |
| - cron: 0 0 * * * | |
| jobs: | |
| updateOctokitStats: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: gr2m/[email protected] | |
| id: stats | |
| with: | |
| org: octokit | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: gr2m/[email protected] | |
| with: | |
| path: data/octokit.csv | |
| columns: >- | |
| open issues,closed issues,open pull requests,closed pull | |
| requests,merged pull requests | |
| open issues: ${{ fromJson(steps.stats.outputs.data).openIssues }} | |
| closed issues: ${{ fromJson(steps.stats.outputs.data).closedIssues }} | |
| open pull requests: ${{ fromJson(steps.stats.outputs.data).openPullRequests }} | |
| closed pull requests: ${{ fromJson(steps.stats.outputs.data).closedPullRequests }} | |
| merged pull requests: ${{ fromJson(steps.stats.outputs.data).mergedPullRequests }} | |
| - run: git config --local user.email "[email protected]" | |
| - run: git config --local user.name "GitHub Action" | |
| - run: git add data | |
| - run: git commit -m "data/octokit.csv updated" | |
| - run: >- | |
| git push | |
| https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
| HEAD | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |