mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 04:14:25 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
name: 'Package Splitter'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
jobs:
|
|
packages_split:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# define package to repository map
|
|
package:
|
|
- local_path: 'starters/academic-cv'
|
|
split_repository: 'theme-academic-cv'
|
|
- local_path: 'starters/resume'
|
|
split_repository: 'theme-resume'
|
|
- local_path: 'starters/blog'
|
|
split_repository: 'theme-blog'
|
|
- local_path: 'starters/documentation'
|
|
split_repository: 'theme-documentation'
|
|
- local_path: 'starters/link-in-bio'
|
|
split_repository: 'theme-link-in-bio'
|
|
- local_path: 'starters/landing-page'
|
|
split_repository: 'theme-landing-page'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
# step if no tag is pushed
|
|
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
uses: 'symplify/monorepo-split-github-action@v2.3.0'
|
|
with:
|
|
# ↓ split "packages/<package-name><package-name>" directory
|
|
package_directory: '${{ matrix.package.local_path }}'
|
|
|
|
# ↓ into https://github.com/HugoBlox/<package-name> repository
|
|
repository_organization: 'HugoBlox'
|
|
repository_name: '${{ matrix.package.split_repository }}'
|
|
|
|
# ↓ the user signed under the split commit
|
|
user_name: 'Splitter Bot'
|
|
user_email: 'no.reply@hugoblox.com'
|