mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
add mirror-template example
This commit is contained in:
parent
17173f9c9e
commit
753d51ebb4
1 changed files with 53 additions and 0 deletions
53
.github/workflows/mirror-templates.yml
vendored
Normal file
53
.github/workflows/mirror-templates.yml
vendored
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
name: 'Mirror Templates'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
packages_split:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
# define package to repository map
|
||||||
|
package:
|
||||||
|
-
|
||||||
|
local_path: 'minimal'
|
||||||
|
split_repository: 'astro-template-minimal'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# no tag
|
||||||
|
-
|
||||||
|
if: "!startsWith(github.ref, 'refs/tags/')"
|
||||||
|
uses: "symplify/monorepo-split-github-action@2.1"
|
||||||
|
with:
|
||||||
|
# ↓ split "packages/easy-coding-standard" directory
|
||||||
|
package_directory: 'examples/${{ matrix.package.local_path }}'
|
||||||
|
|
||||||
|
# ↓ into https://github.com/symplify/easy-coding-standard repository
|
||||||
|
repository_organization: 'natemoo-re'
|
||||||
|
repository_name: '${{ matrix.package.split_repository }}'
|
||||||
|
|
||||||
|
# with tag
|
||||||
|
-
|
||||||
|
if: "startsWith(github.ref, 'refs/tags/')"
|
||||||
|
uses: "symplify/monorepo-split-github-action@2.1"
|
||||||
|
with:
|
||||||
|
tag: ${GITHUB_REF#refs/tags/}
|
||||||
|
|
||||||
|
# ↓ split "packages/easy-coding-standard" directory
|
||||||
|
package_directory: 'examples/${{ matrix.package.local_path }}'
|
||||||
|
|
||||||
|
# ↓ into https://github.com/symplify/easy-coding-standard repository
|
||||||
|
repository_organization: 'natemoo-re'
|
||||||
|
repository_name: '${{ matrix.package.split_repository }}'
|
Loading…
Reference in a new issue