@codedrifters/configulator 0.0.324 → 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.d.mts +10 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +15 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +15 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -35381,16 +35381,27 @@ 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",
|
|
35387
35392
|
if: "hashFiles('cdk-outputs.json') != ''",
|
|
35388
35393
|
shell: "bash",
|
|
35389
35394
|
run: [
|
|
35390
|
-
'
|
|
35391
|
-
|
|
35392
|
-
'
|
|
35393
|
-
'
|
|
35395
|
+
'# Convention: CfnOutputs whose logical ID ends in "Endpoint" are surfaced.',
|
|
35396
|
+
"# See docs/packages/@codedrifters/configulator/workflows/aws-deploy-workflow#surfacing-deploy-urls",
|
|
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"
|
|
35394
35405
|
].join("\n")
|
|
35395
35406
|
},
|
|
35396
35407
|
/**
|