Skip to content

Nightly

Nightly #1487

Workflow file for this run

name: Nightly
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
docgen:
name: Generate Reference Docs
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Default options for running with latest Astro code
# TODO: switch this back to main source branch for normal operations after v6 merge!
- SOURCE_BRANCH: 5-legacy
TARGET_BRANCH: main
LABEL: ci
PR_BRANCH: ci/docgen
PR_TITLE: 'ci: update configuration reference docs'
# Custom options for running with Astro v6 beta code
- SOURCE_BRANCH: main
TARGET_BRANCH: v6
LABEL: 6.0,ci
PR_BRANCH: ci/docgen-beta
PR_TITLE: '[BETA] ci: update reference docs'
steps:
- name: Check out code using Git
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ matrix.TARGET_BRANCH }}
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- name: Run docgen script
run: pnpm run docgen
env:
SOURCE_BRANCH: ${{ matrix.SOURCE_BRANCH }}
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
branch: ${{ matrix.PR_BRANCH }}
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
add-paths: src/content/docs/en/reference/*.mdx
commit-message: 'ci: update reference docs'
title: ${{ matrix.PR_TITLE }}
body: |
This PR is auto-generated by a nightly GitHub action to update the reference docs from source code in withastro/astro.
labels: ${{ matrix.LABEL }}
base: ${{ matrix.TARGET_BRANCH }}
error:
name: Generate Error Reference Docs
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Default options for running with latest Astro code
# TODO: switch this back to main source branch for normal operations after v6 merge!
- SOURCE_BRANCH: 5-legacy
TARGET_BRANCH: main
LABEL: ci
PR_BRANCH: ci/docgen-errors
PR_TITLE: 'ci: update error reference docs'
# Custom options for running with Astro v6 beta code
- SOURCE_BRANCH: main
TARGET_BRANCH: v6
LABEL: 6.0,ci
PR_BRANCH: ci/docgen-errors-beta
PR_TITLE: '[BETA] ci: update error reference docs'
steps:
- name: Check out code using Git
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ matrix.TARGET_BRANCH }}
- name: Install Tools & Dependencies
uses: ./.github/actions/install
- name: Run docgen script
run: pnpm run docgen:errors
env:
SOURCE_BRANCH: ${{ matrix.SOURCE_BRANCH }}
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
branch: ${{ matrix.PR_BRANCH }}
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
add-paths: src/content/docs/en/reference/*.mdx
commit-message: 'ci: update error reference docs'
title: ${{ matrix.PR_TITLE }}
body: |
This PR is auto-generated by a nightly GitHub action to update the error reference docs from source code in withastro/astro.
labels: ${{ matrix.LABEL }}
base: ${{ matrix.TARGET_BRANCH }}