|
33 | 33 | latest_published_version:
|
34 | 34 | description: "Latest PyPi published version to rebuild latest docs for, e.g. 3.0.0, 3.0.0a1 (pre-release)"
|
35 | 35 | required: true
|
| 36 | + layer_documentation_version: |
| 37 | + description: "Version to be updated in our documentation. e.g. if the current layer number is 3, this value must be 4." |
| 38 | + required: true |
36 | 39 | source_code_artifact_name:
|
37 | 40 | description: "Artifact name to restore sealed source code"
|
38 | 41 | type: string
|
|
52 | 55 | type: string
|
53 | 56 | description: "Latest PyPi published version to rebuild latest docs for, e.g. 3.0.0, 3.0.0a1 (pre-release)"
|
54 | 57 | required: true
|
| 58 | + layer_documentation_version: |
| 59 | + type: string |
| 60 | + description: "Version to be updated in our documentation. e.g. if the current layer number is 3, this value must be 4." |
| 61 | + required: true |
55 | 62 | pre_release:
|
56 | 63 | description: "Publishes documentation using a pre-release tag (3.0.0a1)."
|
57 | 64 | default: false
|
@@ -257,29 +264,20 @@ jobs:
|
257 | 264 | integrity_hash: ${{ inputs.source_code_integrity_hash }}
|
258 | 265 | artifact_name: ${{ inputs.source_code_artifact_name }}
|
259 | 266 |
|
260 |
| - # UNCOMMENT THIS |
261 |
| - # - name: Download CDK layer artifacts |
262 |
| - # uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 |
263 |
| - # with: |
264 |
| - # path: cdk-layer-stack |
265 |
| - # pattern: cdk-layer-stack-* # merge all Layer artifacts created per region earlier (reusable_deploy_v2_layer_stack.yml; step "Save Layer ARN artifact") |
266 |
| - # merge-multiple: true |
267 |
| - # - name: Replace layer versions in documentation |
268 |
| - # run: | |
269 |
| - # ls -la cdk-layer-stack/ |
270 |
| - # ./layer_v3/scripts/update_layer_arn.sh cdk-layer-stack |
| 267 | + - name: Replace layer versions in documentation |
| 268 | + run: ./layer_v3/scripts/update_layer_arn_v3.sh ${{ inputs.layer_documentation_version }} |
271 | 269 | # NOTE: It felt unnecessary creating yet another PR to update changelog w/ latest tag
|
272 | 270 | # since this is the only step in the release where we update docs from a temp branch
|
273 |
| - # - name: Update changelog with latest tag |
274 |
| - # run: make changelog |
275 |
| - # - name: Create PR |
276 |
| - # id: create-pr |
277 |
| - # uses: ./.github/actions/create-pr |
278 |
| - # with: |
279 |
| - # files: "docs/index.md examples CHANGELOG.md" |
280 |
| - # temp_branch_prefix: "ci-layer-docs" |
281 |
| - # pull_request_title: "chore(ci): layer docs update" |
282 |
| - # github_token: ${{ secrets.GITHUB_TOKEN }} |
| 271 | + - name: Update changelog with latest tag |
| 272 | + run: make changelog |
| 273 | + - name: Create PR |
| 274 | + id: create-pr |
| 275 | + uses: ./.github/actions/create-pr |
| 276 | + with: |
| 277 | + files: "docs/index.md docs/includes/_layer_homepage_arm64.md docs/includes/_layer_homepage_x86.md examples CHANGELOG.md" |
| 278 | + temp_branch_prefix: "ci-layer-docs" |
| 279 | + pull_request_title: "chore(ci): layer docs update" |
| 280 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
283 | 281 |
|
284 | 282 | prepare_docs_alias:
|
285 | 283 | runs-on: ubuntu-latest
|
|
0 commit comments