Skip to content

.github/workflows/mirror.yml #99

.github/workflows/mirror.yml

.github/workflows/mirror.yml #99

Workflow file for this run

on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Clone Astro Repo
uses: actions/checkout@v3
with:
fetch-depth: 1
repository: withastro/astro
path: astro
sparse-checkout: examples
- name: Clone Astro Repo
run: |
cp -r astro/examples/* ./templates
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit_message: "[ci] update-templates"
branch: ${{ github.head_ref }}