Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace local split scripts with a Github action #127

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/split.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Packages Split'

on:
push:
branches:
- main
release:
types: [ published ]

jobs:
packages_split:
name: "Packages Split"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
run: git clone https://github.com/yokai-php/batch-src /home/runner/work/yokai-php/batch-src && cd $_

- name: "Gitsplit"
run: docker run --rm -t -e GH_TOKEN -v /cache/gitsplit:/cache/gitsplit -v /home/runner/work/yokai-php/batch-src:/srv jderusse/gitsplit gitsplit
env:
GH_TOKEN: ${{ secrets.GITSPLIT_TOKEN }}
49 changes: 49 additions & 0 deletions .gitsplit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Path to a cache directory Used to speed up the split over time by reusing git's objects
cache_url: "/cache/gitsplit"

# Packages to split
splits:
-
prefix: "src/batch"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-documentation.git"
yann-eugone marked this conversation as resolved.
Show resolved Hide resolved
-
prefix: "docs"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch.git"
-
prefix: "src/batch-doctrine-dbal"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-doctrine-dbal.git"
-
prefix: "src/batch-doctrine-orm"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-doctrine-orm.git"
-
prefix: "src/batch-doctrine-persistence"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-doctrine-persistence.git"
-
prefix: "src/batch-league-flysystem"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-league-flysystem.git"
-
prefix: "src/batch-openspout"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-openspout.git"
-
prefix: "src/batch-symfony-console"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-symfony-console.git"
-
prefix: "src/batch-symfony-framework"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-symfony-framework.git"
-
prefix: "src/batch-symfony-messenger"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-symfony-messenger.git"
-
prefix: "src/batch-symfony-pack"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-symfony-pack.git"
-
prefix: "src/batch-symfony-serializer"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-symfony-serializer.git"
-
prefix: "src/batch-symfony-validator"
target: "https://${GH_TOKEN}@github.com/yokai-php/batch-symfony-validator.git"

# List of references to split (defined as regexp)
origins:
- ^(0\.x)$ # the default branch
- ^v\d+\.\d+\.\d+$ # the version tags
51 changes: 0 additions & 51 deletions scripts/split-branch

This file was deleted.

51 changes: 0 additions & 51 deletions scripts/split-tag

This file was deleted.

Binary file removed scripts/splitsh-lite
Binary file not shown.
Loading