diff options
author | 2021-11-14 15:25:45 -0600 | |
---|---|---|
committer | 2021-11-14 15:25:45 -0600 | |
commit | 753d51ebb4c61bcf4ad1a7eed3f508d351b0fd85 (patch) | |
tree | 303dc92f340362b62e1e6aacbf24542424982d45 | |
parent | 17173f9c9ec5bb3bc3cecbe67187fe0af1772bce (diff) | |
download | astro-753d51ebb4c61bcf4ad1a7eed3f508d351b0fd85.tar.gz astro-753d51ebb4c61bcf4ad1a7eed3f508d351b0fd85.tar.zst astro-753d51ebb4c61bcf4ad1a7eed3f508d351b0fd85.zip |
add mirror-template example
-rw-r--r-- | .github/workflows/mirror-templates.yml | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/mirror-templates.yml b/.github/workflows/mirror-templates.yml new file mode 100644 index 000000000..15c4b4af9 --- /dev/null +++ b/.github/workflows/mirror-templates.yml @@ -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 }}' |