Compare commits

...

3 commits

Author SHA1 Message Date
Nate Moore
4138d5eec5 wip: update repo 2023-10-02 15:12:16 -05:00
Nate Moore
2d4c0c8c69 wip: add mirror matrix 2023-10-02 15:11:53 -05:00
Nate Moore
6d5d944125 wip: add mirror action 2023-10-02 14:58:07 -05:00

31
.github/workflows/mirror.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Mirror
on:
push:
branches:
- main
paths:
- "examples/**"
jobs:
mirror:
if: github.repository_owner == 'natemoo-re'
runs-on: ubuntu-latest
strategy:
matrix:
name:
- basics
- blog
- minimal
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Mirror (${{ matrix.name }})
run: |
git filter-repo --path examples/${{matrix.name}}
git remote set-url origin https://github.com/natemoo-re/astro-template-${{matrix.name}}.git
git add .
git commit -m "[ci]: mirror from `withastro/astro`"
git push --force