Skip to content

Using "timestampTolerance" on both sides #182

Using "timestampTolerance" on both sides

Using "timestampTolerance" on both sides #182

name: Packages Split
on:
push:
branches:
- main
tags:
- '*'
paths:
- .github/workflows/monorepo-split.yaml
- composer/**
- npm/**
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Define package to repository map
package:
# Composer
- local_path: composer/packages/web-toolkit-bundle
split_repository: web-toolkit-bundle
- local_path: composer/packages/web-toolkit-k8s-cli
split_repository: web-toolkit-k8s-cli
- local_path: composer/projects/symfony-web-toolkit-skeleton
split_repository: symfony-web-toolkit-skeleton
- local_path: composer/projects/web-toolkit-k8s-cli-project
split_repository: web-toolkit-k8s-cli-project
# NPM
- local_path: npm/web-toolkit-front-end
split_repository: web-toolkit-front-end
# GitHub
- local_path: github/web-toolkit-workflows
split_repository: web-toolkit-workflows
steps:
- name: Checkout
uses: actions/checkout@v2
# No tag
- name: Run for no-tag
if: '!startsWith(github.ref, ''refs/tags/'')'
uses: danharrin/[email protected]
with:
package_directory: ${{ matrix.package.local_path }}
repository_organization: 'mep-agency'
repository_name: ${{ matrix.package.split_repository }}
user_name: GitHub Action
user_email: [email protected]
# With tag
- name: Run for tag
if: startsWith(github.ref, 'refs/tags/')
uses: danharrin/[email protected]
with:
tag: ${GITHUB_REF#refs/tags/}
package_directory: ${{ matrix.package.local_path }}
repository_organization: 'mep-agency'
repository_name: ${{ matrix.package.split_repository }}
user_name: GitHub Action
user_email: [email protected]