Skip to content

Ignore non-200 status for error message #180

Ignore non-200 status for error message

Ignore non-200 status for error message #180

name: Split Monorepo
on:
push:
branches:
- main
tags:
- '*'
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: packages/bing-homepage
split_repository: bing-homepage
- local_path: packages/leanstorage
split_repository: leanstorage
- local_path: packages/mango
split_repository: mango
- local_path: packages/promise-http-client
split_repository: promise-http-client
- local_path: packages/clear-service-tags-bundle
split_repository: clear-service-tags-bundle
- local_path: packages/workerman-symfony-runtime
split_repository: workerman-symfony-runtime
- local_path: packages/aria2
split_repository: aria2
- local_path: packages/x509-chain-verifier
split_repository: x509-chain-verifier
steps:
- uses: actions/checkout@v3
# no tag
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/[email protected]"
with:
branch: main
# ↓ split "<local_path>" directory
package_directory: "${{ matrix.package.local_path }}"
# ↓ into "https://github.com/manyou-io/<split_repository>" repository
repository_organization: "manyou-io"
repository_name: "${{ matrix.package.split_repository }}"
# [optional, with "github.com" as default]
# repository_host: github.com
# ↓ the user signed under the split commit
user_name: "Brent, Bohan Yang"
user_email: "[email protected]"
# with tag
- if: "startsWith(github.ref, 'refs/tags/')"
uses: "danharrin/[email protected]"
with:
branch: main
tag: ${GITHUB_REF#refs/tags/}
# ↓ split "<local_path>" directory
package_directory: "${{ matrix.package.local_path }}"
# ↓ into "https://github.com/manyou-io/<split_repository>" repository
repository_organization: "manyou-io"
repository_name: "${{ matrix.package.split_repository }}"
# [optional, with "github.com" as default]
repository_host: github.com
# ↓ the user signed under the split commit
user_name: "Brent, Bohan Yang"
user_email: "[email protected]"