mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
29 lines
749 B
YAML
29 lines
749 B
YAML
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 }}
|