@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.js CHANGED
@@ -35701,6 +35701,11 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen25.Compone
35701
35701
  * Render a job-summary table listing every `*Endpoint` output emitted
35702
35702
  * by the deploy. Also writes the same list to `deploy-urls.md` so the
35703
35703
  * follow-up sticky-PR-comment step can reuse it.
35704
+ *
35705
+ * The file is only created when jq returns at least one match — an
35706
+ * empty `deploy-urls.md` would pass the downstream `hashFiles(...)`
35707
+ * guard and then fail the sticky-comment action with
35708
+ * "Either message or path input is required" (issue #721).
35704
35709
  */
35705
35710
  {
35706
35711
  name: "Render deploy summary",
@@ -35709,10 +35714,14 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen25.Compone
35709
35714
  run: [
35710
35715
  '# Convention: CfnOutputs whose logical ID ends in "Endpoint" are surfaced.',
35711
35716
  "# See docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow#surfacing-deploy-urls",
35712
- 'echo "## Deployed endpoints" >> "$GITHUB_STEP_SUMMARY"',
35713
- `jq -r '[.[] | to_entries[] | select(.key | test("Endpoint$")) | .value] | .[] | "- [\\(.)](\\(.))"' cdk-outputs.json | tee deploy-urls.md >> "$GITHUB_STEP_SUMMARY"`,
35714
- 'echo "" >> "$GITHUB_STEP_SUMMARY"',
35715
- 'echo "_DNS/CloudFront may take ~1 minute to propagate._" >> "$GITHUB_STEP_SUMMARY"'
35717
+ `endpoints=$(jq -r '[.[] | to_entries[] | select(.key | test("Endpoint$")) | .value] | .[] | "- [\\(.)](\\(.))"' cdk-outputs.json)`,
35718
+ 'if [ -n "$endpoints" ]; then',
35719
+ ' echo "## Deployed endpoints" >> "$GITHUB_STEP_SUMMARY"',
35720
+ ' echo "$endpoints" >> "$GITHUB_STEP_SUMMARY"',
35721
+ ' echo "" >> "$GITHUB_STEP_SUMMARY"',
35722
+ ' echo "_DNS/CloudFront may take ~1 minute to propagate._" >> "$GITHUB_STEP_SUMMARY"',
35723
+ ` printf '%s\\n' "$endpoints" > deploy-urls.md`,
35724
+ "fi"
35716
35725
  ].join("\n")
35717
35726
  },
35718
35727
  /**