@postman-cs/onboarding-repo-sync 2.9.3 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,6 +8,7 @@ Part of the [Postman API Onboarding suite](https://github.com/postman-cs/postman
8
8
 
9
9
  - [Usage](#usage)
10
10
  - [Examples](#examples)
11
+ - [Monorepos](#monorepos)
11
12
  - [Inputs](#inputs) / [Outputs](#outputs)
12
13
  - [How it works](#how-it-works)
13
14
 
@@ -134,6 +135,13 @@ with:
134
135
 
135
136
  On canonical and legacy runs, the action creates or reuses `<project> - Mock`, sets its `baseUrl` to the validated mock URL, and emits `mock-environment-uid`. Preview and channel runs skip it so branch retention cleanup cannot leak an untracked environment. Its exported representation lives at `postman/mocks/manual-validation.postman_environment.json`; it is deliberately excluded from `environment-uids-json`, system-environment associations, monitors, and generated CI environment selection. Select it explicitly when running baseline, Smoke, or Contract collections manually. Repo-sync never replaces the runtime `prod` or `dev` `baseUrl` with a mock URL.
136
137
 
138
+ ## Monorepos
139
+
140
+ Set `working-directory` to a service directory to keep its `postman/` and `.postman/` state isolated.
141
+ Use one repository-root dispatcher workflow; nested `.github/workflows/` directories are ignored by
142
+ GitHub. See the [monorepo onboarding guide](docs/monorepo.md) for the supported layout, change
143
+ detection, concurrency, loop prevention, credentials, and CLI usage.
144
+
137
145
  ### mTLS certificates for Postman CLI runs
138
146
 
139
147
  The generated CI workflow can run [Postman CLI collection runs](https://learning.postman.com/docs/postman-cli/postman-cli-collections/) with client certificates. Pass the cert material as inputs; when a GitHub token and repository context are available, the action persists them as repository secrets (`POSTMAN_SSL_CLIENT_CERT_B64`, `POSTMAN_SSL_CLIENT_KEY_B64`, `POSTMAN_SSL_CLIENT_PASSPHRASE`, `POSTMAN_SSL_EXTRA_CA_CERTS_B64`) for the generated workflow:
@@ -150,7 +158,8 @@ with:
150
158
  <!-- inputs-table:start -->
151
159
  | Name | Description | Required | Default |
152
160
  | --- | --- | --- | --- |
153
- | `generate-ci-workflow` | Whether to generate the CI workflow file | no | `true` |
161
+ | `working-directory` | Repository-root-relative directory used for all local inputs and generated artifacts. | no | `""` |
162
+ | `generate-ci-workflow` | Whether to generate the CI workflow file. Defaults to true at the repository root and false when working-directory is set. | no | |
154
163
  | `ci-workflow-path` | Path to write the generated CI workflow file. Defaults to azure-pipelines.yml for Azure DevOps, .github/workflows/ci.yml otherwise. | no | |
155
164
  | `ci-runner-os` | Runner operating system for the generated CI workflow. Use windows for native PowerShell Azure DevOps CI. | no | `linux` |
156
165
  | `project-name` | Service project name used for environment, mock, and monitor naming. | yes | |
package/action.yml CHANGED
@@ -5,11 +5,13 @@ branding:
5
5
  icon: refresh-cw
6
6
  color: orange
7
7
  inputs:
8
-
8
+ working-directory:
9
+ description: Repository-root-relative directory used for all local inputs and generated artifacts.
10
+ required: false
11
+ default: ''
9
12
  generate-ci-workflow:
10
- description: Whether to generate the CI workflow file
13
+ description: Whether to generate the CI workflow file. Defaults to true at the repository root and false when working-directory is set.
11
14
  required: false
12
- default: "true"
13
15
  ci-workflow-path:
14
16
  description: Path to write the generated CI workflow file. Defaults to azure-pipelines.yml for Azure DevOps, .github/workflows/ci.yml otherwise.
15
17
  required: false