Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Apr 3, 2024
0 parents commit f940418
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:

jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Clone Astro Repo
run: |
git clone --depth 1 https://github.com/withastro/astro
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 }}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Templates

## What's this?

This repo is a mirror of the [examples folder](https://github.com/withastro/astro/tree/main/examples) of the [Astro](https://astro.build) project. By having the examples in a separate repo, downloading the examples is much faster due to not having to download the entire Astro project.

**Do not open issues or PRs here.** If you have an issue with an example, please open an issue in the [Astro repo](https://github.com/withastro/astro).
Empty file added templates/.gitkeep
Empty file.

0 comments on commit f940418

Please sign in to comment.