Log @kubeservice organization statistics #234
This file contains 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: Log @kubeservice organization statistics | |
on: | |
schedule: | |
- cron: '0 1 * * *' | |
workflow_dispatch: | |
jobs: | |
Stats: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: gr2m/[email protected] | |
id: stats | |
with: | |
org: kubeservice-stack | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: | | |
cat << EOF | |
result: ${{ steps.stats.outputs.data }} | |
EOF | |
- name: Modify README.md | |
uses: jaywcjlove/[email protected] | |
with: | |
path: profile/README.md | |
token: ${{ secrets.GITHUB_TOKEN }} | |
body: | | |
本月社区更新情况: | |
| 条目 | 活跃情况 | | |
| :-- | :--: | | |
|🐱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 }}| | |