Merge branch '3.x' into wip/floor-plann #254
This file contains 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 Modules | |
on: [ push ] | |
jobs: | |
split_modules: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- path: 'admin' | |
repository: 'ti-module-admin' | |
- path: 'main' | |
repository: 'ti-module-main' | |
- path: 'system' | |
repository: 'ti-module-system' | |
steps: | |
- uses: actions/checkout@v2 | |
# no tag | |
- if: "!startsWith(github.ref, 'refs/tags/')" | |
# Uses an action in the root directory | |
name: Module Split of app/${{ matrix.package.path }} | |
uses: danharrin/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
with: | |
branch: ${GITHUB_REF#refs/heads/} | |
package_directory: 'app/${{ matrix.package.path }}' | |
repository_organization: 'tastyigniter' | |
repository_name: '${{ matrix.package.repository }}' | |
user_name: "Sam Poyigi" | |
user_email: "[email protected]" | |
# with tag | |
- if: "startsWith(github.ref, 'refs/tags/')" | |
# Uses an action in the root directory | |
name: Modules Tagged Split of ${{ matrix.package.path }} | |
uses: danharrin/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
with: | |
tag: ${GITHUB_REF#refs/tags/} | |
package_directory: 'app/${{ matrix.package.path }}' | |
repository_organization: 'tastyigniter' | |
repository_name: '${{ matrix.package.repository }}' | |
user_name: "Sam Poyigi" | |
user_email: "[email protected]" |