Skip to content

Fixing caching errors #178

Fixing caching errors

Fixing caching errors #178

Workflow file for this run

name: "Split repos"
on:
push:
# Only trigger for specific branches or changes in specific paths.
branches:
- '*'
paths:
- '**packages/**'
- '**/starters/**'
- '**/docs/**'
# Tag push events should be ignored, they will be handled with the create event below.
tags-ignore:
- '*'
create:
tags:
- '*'
delete:
tags:
- '*'
jobs:
sync_commits:
runs-on: ubuntu-latest
name: Sync commits
if: github.repository == 'powerstackdev/power-stack' # Execute this workflow job only on the main repository.
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
# Add a personal access token to the repository secrets. This will allow the splitter action to push the new commits
- uses: frankdejonge/use-github-token@1.1.0
with:
authentication: 'username:${{ secrets.PERSONAL_GITHUB_TOKEN }}'
user_name: 'Power Stack Bot'
user_email: 'no-reply@powerstack.dev'
# Cache the splitsh executable to speedup future runs
- name: Cache splitsh-lite
uses: actions/cache@v4
with:
path: './splitsh'
key: '${{ runner.os }}-splitsh-v101'
# Sync commits and tags for the configured subtree splits
- name: subtree split
uses: acrobat/subtree-splitter@v1.1.4
with:
config-path: ./package-config.json # Reference the location where you saved your config file