Added progress bar for seeding benchmark data #10
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 Packages | |
| on: | |
| push: | |
| branches: [master, '*.x'] | |
| tags: ['[0-9]*.[0-9]*.[0-9]*'] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.SPLIT_TOKEN }} | |
| jobs: | |
| split: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: [core, admin, ai, graphql, import, search, jsonapi, mcp, theme] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Seed empty repo | |
| run: | | |
| REPO="https://${GITHUB_TOKEN}@github.com/aimeos/pagible-${{ matrix.package }}.git" | |
| DIR=$(mktemp -d) | |
| git clone -- "$REPO" "$DIR" 2>&1 || true | |
| cd "$DIR" | |
| if ! git rev-parse HEAD >/dev/null 2>&1; then | |
| git checkout -b ${{ github.ref_name }} | |
| git config user.name "aimeos" | |
| git config user.email "aimeos@aimeos.org" | |
| git commit --allow-empty -m "Initial commit" | |
| git push -u origin ${{ github.ref_name }} | |
| fi | |
| rm -rf "$DIR" | |
| - name: Split and push branch | |
| if: "!startsWith(github.ref, 'refs/tags/')" | |
| uses: danharrin/monorepo-split-github-action@v2.4.4 | |
| with: | |
| branch: ${{ github.ref_name }} | |
| package_directory: ${{ matrix.package }} | |
| repository_organization: 'aimeos' | |
| repository_name: 'pagible-${{ matrix.package }}' | |
| user_name: 'aimeos' | |
| user_email: 'aimeos@aimeos.org' | |
| - name: Split and push tag | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: danharrin/monorepo-split-github-action@v2.4.4 | |
| with: | |
| branch: master | |
| tag: ${{ github.ref_name }} | |
| package_directory: ${{ matrix.package }} | |
| repository_organization: 'aimeos' | |
| repository_name: 'pagible-${{ matrix.package }}' | |
| user_name: 'aimeos' | |
| user_email: 'aimeos@aimeos.org' |