@codedrifters/configulator 0.0.325 → 0.0.326

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/lib/index.mjs CHANGED
@@ -35381,6 +35381,11 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component21 {
35381
35381
  * Render a job-summary table listing every `*Endpoint` output emitted
35382
35382
  * by the deploy. Also writes the same list to `deploy-urls.md` so the
35383
35383
  * follow-up sticky-PR-comment step can reuse it.
35384
+ *
35385
+ * The file is only created when jq returns at least one match — an
35386
+ * empty `deploy-urls.md` would pass the downstream `hashFiles(...)`
35387
+ * guard and then fail the sticky-comment action with
35388
+ * "Either message or path input is required" (issue #721).
35384
35389
  */
35385
35390
  {
35386
35391
  name: "Render deploy summary",
@@ -35389,10 +35394,14 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component21 {
35389
35394
  run: [
35390
35395
  '# Convention: CfnOutputs whose logical ID ends in "Endpoint" are surfaced.',
35391
35396
  "# See docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow#surfacing-deploy-urls",
35392
- 'echo "## Deployed endpoints" >> "$GITHUB_STEP_SUMMARY"',
35393
- `jq -r '[.[] | to_entries[] | select(.key | test("Endpoint$")) | .value] | .[] | "- [\\(.)](\\(.))"' cdk-outputs.json | tee deploy-urls.md >> "$GITHUB_STEP_SUMMARY"`,
35394
- 'echo "" >> "$GITHUB_STEP_SUMMARY"',
35395
- 'echo "_DNS/CloudFront may take ~1 minute to propagate._" >> "$GITHUB_STEP_SUMMARY"'
35397
+ `endpoints=$(jq -r '[.[] | to_entries[] | select(.key | test("Endpoint$")) | .value] | .[] | "- [\\(.)](\\(.))"' cdk-outputs.json)`,
35398
+ 'if [ -n "$endpoints" ]; then',
35399
+ ' echo "## Deployed endpoints" >> "$GITHUB_STEP_SUMMARY"',
35400
+ ' echo "$endpoints" >> "$GITHUB_STEP_SUMMARY"',
35401
+ ' echo "" >> "$GITHUB_STEP_SUMMARY"',
35402
+ ' echo "_DNS/CloudFront may take ~1 minute to propagate._" >> "$GITHUB_STEP_SUMMARY"',
35403
+ ` printf '%s\\n' "$endpoints" > deploy-urls.md`,
35404
+ "fi"
35396
35405
  ].join("\n")
35397
35406
  },
35398
35407
  /**