Skip to content

Instantly share code, notes, and snippets.

@terabytesoftw
Created December 2, 2025 13:43
Show Gist options
  • Select an option

  • Save terabytesoftw/03c4cefd63798522597149d615222ee1 to your computer and use it in GitHub Desktop.

Select an option

Save terabytesoftw/03c4cefd63798522597149d615222ee1 to your computer and use it in GitHub Desktop.
Subsplit Yii2.
{
"subtrees": {
"framework": {
"prefix": "framework",
"remote": "https://github.com/yiisoft/yii2-framework.git",
"branch": "master"
}
}
}
name: 'Subsplit Framework'
on:
push:
branches:
- master
- '2.*'
- '3.*'
tags:
- '*' # Detecta tags como 2.0.50 (sin prefijo 'v')
jobs:
subsplit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Git user
uses: frankdejonge/use-github-token@v1
with:
authentication: "yii-framework-bot:${{ secrets.SUBSPLIT_GITHUB_TOKEN }}"
user_name: "Yii Framework Bot"
user_email: "opensource@yiisoft.com"
- name: Cache splitsh-lite
uses: actions/cache@v4
with:
path: ./.splitsh
key: ${{ runner.os }}-splitsh-lite
- name: Publish subsplits
uses: frankdejonge/use-subsplit-publish@v1.1.0
with:
source-branch: ${{ github.ref_name }}
config-path: './config.subsplit-publish.json'
splitsh-path: './.splitsh/splitsh-lite'
splitsh-version: 'v1.0.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment