mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
c5361a131d
* upgraded workflow actions * removed unnecessary envs + some formatting * removed extra instruction * bumped pnpm version
69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
name: 'Nightly'
|
|
|
|
on:
|
|
schedule:
|
|
# * is a special character in YAML so you have to quote this string
|
|
- cron: '0 12 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
stat:
|
|
if: github.repository_owner == 'withastro'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out code using Git
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@v2.2.1
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- 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@v3
|
|
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@v2.2.1
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
cache: 'pnpm'
|
|
|
|
- name: Upgrade recursive
|
|
run: pnpm upgrade --recursive
|
|
|
|
- name: Create Pull Request
|
|
id: createpr
|
|
uses: peter-evans/create-pull-request@v3
|
|
with:
|
|
branch: ci/lockfile
|
|
token: ${{ secrets.NIGHTLY_PERSONAL_GITHUB_TOKEN }}
|
|
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.
|