diff --git a/.github/workflows/label-stats.yml b/.github/workflows/label-stats.yml index f8f7575..404f2e8 100644 --- a/.github/workflows/label-stats.yml +++ b/.github/workflows/label-stats.yml @@ -1,8 +1,10 @@ name: Generate label stats + on: schedule: - cron: "0 0 * * *" workflow_dispatch: + jobs: stats: name: Generate label stats @@ -12,6 +14,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Query stats uses: actions/github-script@v6 id: stats @@ -46,8 +49,10 @@ jobs: const string = JSON.stringify(formattedData, null, 2).replaceAll('\"', '\\"'); return string; + - name: Write stats run: echo "${{steps.stats.outputs.result}}" > compat-stats.json + - name: Commit stats run: | git config user.name github-actions