Skip to content

Commit

Permalink
monorepo split
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Mar 14, 2024
1 parent 05735db commit 45577b5
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/split.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Split Test

on:
push:
branches:
- main

# see https://github.community/t/how-to-run-github-actions-workflow-only-for-new-tags/16075/10?u=tomasvotruba
tags:
- '*'

pull_request: null

release:
types: [created]

jobs:
split:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
local_path: 'oneroster'
split_repository: 'sky-api-oneroster-READONLY'
-
local_path: 'school'
split_repository: 'sky-api-school-READONLY'
steps:
-
uses: actions/checkout@v2

-
# run action.yaml in the root directory
# see https://github.community/t/self-reference-an-action-for-testing/17891
uses: "./"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
with:
package_directory: 'packages/${{ matrix.package.local_path }}'
repository_organization: 'groton-school'
repository_name: '${{ matrix.package.split_repository }}'
user_name: 'battis'
user_email: 'sbattis@groton.org'

0 comments on commit 45577b5

Please sign in to comment.