Merge pull request #18085 from craftcms/feature/asset-query #104
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: monorepo-split | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - 6.x | |
| - feature/split-packages | |
| tags: '*' | |
| jobs: | |
| split-monorepo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| # No tag | |
| - name: Monorepo Split | |
| if: "!startsWith(github.ref, 'refs/tags/')" | |
| uses: danharrin/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
| with: | |
| package_directory: 'yii2-adapter' | |
| repository_organization: 'craftcms' | |
| repository_name: 'yii2-adapter' | |
| branch: ${{ github.head_ref || github.ref_name }} | |
| user_name: 'shinybrad' | |
| user_email: '[email protected]' | |
| # With Tag | |
| - name: Monorepo Split | |
| if: "startsWith(github.ref, 'refs/tags/')" | |
| uses: danharrin/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
| with: | |
| tag: ${GITHUB_REF#refs/tags/} | |
| package_directory: 'yii2-adapter' | |
| repository_organization: 'craftcms' | |
| repository_name: 'yii2-adapter' | |
| user_name: 'shinybrad' | |
| user_email: '[email protected]' |