wip: add mirror matrix

This commit is contained in:
Nate Moore 2023-10-02 15:11:53 -05:00
parent 6d5d944125
commit 2d4c0c8c69

View file

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