astro/.github/workflows/nightly.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.8 KiB
YAML
Raw Normal View History

2021-12-13 21:04:21 +00:00
name: 'Nightly'
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 12 * * *'
workflow_dispatch:
2021-12-13 21:04:21 +00:00
jobs:
stat:
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v2
- name: Set Node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
- name: Collect stats
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 }}
lockfile:
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v2
- name: Set Node version to 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'yarn'
- name: Clear lockfile
run: rm -rf yarn.lock node_modules
- name: Install dependencies
run: yarn install --ignore-engines --ignore-scripts
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@v3
with:
2022-03-01 05:43:52 +00:00
branch: ci/lockfile
2021-12-14 16:45:23 +00:00
token: ${{ secrets.NIGHTLY_PERSONAL_GITHUB_TOKEN }}
2021-12-13 21:04:21 +00:00
commit-message: '[ci] update lockfile'
title: '[ci] update lockfile'
body: >
This PR is auto-generated by a nightly GitHub action.
It should automatically be merged if tests pass.