From 6d5d9441257e2c19dc19efae50ad21ac131125ea Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 29 Sep 2022 23:33:11 -0500 Subject: [PATCH] wip: add mirror action --- .github/workflows/mirror.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 000000000..a2c26360a --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,23 @@ +name: "Mirror" + +on: + push: + branches: + - main + paths: + - "examples/**" + +jobs: + stat: + if: github.repository_owner == 'natemoo-re' + runs-on: ubuntu-latest + steps: + - name: Check out code using Git + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Setup Mirror + run: | + git filter-repo --path examples/minimal + git remote set-url origin https://github.com/withastro/astro-template-minimal.git