๐งโ๐ป Add LoomPanel::hasPath() method
#19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Split Templates | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "0.*" | |
| tags: | |
| - "*" | |
| release: | |
| types: [created] | |
| jobs: | |
| split-templates: | |
| name: ๐๏ธ Split ${{ matrix.template }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| template: ["starter"] # ๐ฎ Add more templates here... | |
| steps: | |
| - name: ๐ฅ Checkout | |
| uses: actions/checkout@v4 | |
| - name: ๐ Extract commit info | |
| run: | | |
| echo "AUTHOR_NAME=$(git log -1 --pretty=%an)" >> $GITHUB_ENV | |
| echo "AUTHOR_EMAIL=$(git log -1 --pretty=%ae)" >> $GITHUB_ENV | |
| - name: ๐ Prepare tag | |
| if: "startsWith(github.ref, 'refs/tags/')" | |
| run: echo "GITHUB_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
| - name: ๐ฟ Split ${{ matrix.template }} (branch) | |
| if: "!startsWith(github.ref, 'refs/tags/')" | |
| uses: danharrin/monorepo-split-github-action@v2.3.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
| with: | |
| package_directory: "templates/${{ matrix.template }}" | |
| repository_organization: "loomkit" | |
| repository_name: "${{ matrix.template }}" | |
| user_name: "${{ env.AUTHOR_NAME }}" | |
| user_email: "${{ env.AUTHOR_EMAIL }}" | |
| branch: ${GITHUB_REF#refs/heads/} | |
| - name: ๐ท๏ธ๐ฟ Split ${{ matrix.template }} (tag branch) | |
| if: "startsWith(github.ref, 'refs/tags/')" | |
| uses: danharrin/monorepo-split-github-action@v2.3.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
| with: | |
| package_directory: "templates/${{ matrix.template }}" | |
| repository_organization: "loomkit" | |
| repository_name: "${{ matrix.template }}" | |
| user_name: "${{ env.AUTHOR_NAME }}" | |
| user_email: "${{ env.AUTHOR_EMAIL }}" | |
| branch: ${GITHUB_TAG%.*} | |
| - name: ๐ท๏ธ Tag ${{ matrix.template }} | |
| if: "startsWith(github.ref, 'refs/tags/')" | |
| uses: danharrin/monorepo-split-github-action@v2.3.0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
| with: | |
| tag: ${GITHUB_REF#refs/tags/} | |
| package_directory: "templates/${{ matrix.template }}" | |
| repository_organization: "loomkit" | |
| repository_name: "${{ matrix.template }}" | |
| user_name: "${{ env.AUTHOR_NAME }}" | |
| user_email: "${{ env.AUTHOR_EMAIL }}" | |
| branch: ${GITHUB_TAG%.*} |