Skip to content

Updated workflow

Updated workflow #7

Workflow file for this run

name: 'Packages Split'
on:
push:
branches:
- master
tags:
- '*'
env:
# 1. for GitHub split
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
-
path: 'module-tag'
repo: 'module-tag-test'
-
path: 'module-tax'
repo: 'module-tax-test'
steps:
- uses: actions/checkout@v3
# no tag
-
if: "!startsWith(github.ref, 'refs/tags/')"
uses: "jonnitto/monorepo-split-github-action@5d896ffadc77de340b07e6b6ac10280ae0eefa77"
with:
# ↓ split "packages/easy-coding-standard" directory
package_directory: 'packages/${{ matrix.package.path }}'
# ↓ into https://github.com/openmage-strict/<REPO> repository
repository_organization: 'openmage-strict'
repository_name: '${{ matrix.package.repo }}'
# ↓ the user signed under the split commit
user_name: "sreichel"
user_email: "github-sr@hotmail.com"
# with tag
-
if: "startsWith(github.ref, 'refs/tags/')"
uses: "jonnitto/monorepo-split-github-action@5d896ffadc77de340b07e6b6ac10280ae0eefa77"
with:
tag: ${GITHUB_REF#refs/tags/}
# ↓ split "packages/easy-coding-standard" directory
package_directory: 'packages/${{ matrix.package.path }}'
# ↓ into https://github.com/openmage-strict/<REPO> repository
repository_organization: 'openmage-strict'
repository_name: '${{ matrix.package.repo }}'
# ↓ the user signed under the split commit
user_name: "sreichel"
user_email: "github-sr@hotmail.com"