forked from hashicorp/terraform-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cdkft: use reusable workflow and translate more (hashicorp#32457)
* cdkft: use reusable workflow and translate more * fix: ignore cdktf markdown docs Due to the partial translation there might be missing links. The registry UI handles them gracefully so it's not a real problem * chore: add instance documentation to translated docs * cdktf: update r/lambda_alias.html.markdown,r/instance.html.markdown,r/eks_node_group.html.markdown,r/eks_identity_provider_config.html.markdown,r/eks_fargate_profile.html.markdown,r/eks_cluster.html.markdown,r/eks_addon.html.markdown,r/ec2_transit_gateway_vpc_attachment_accepter.html.markdown,r/ec2_transit_gateway_vpc_attachment.html.markdown,r/ec2_transit_gateway_route_table_propagation.html.markdown --------- Co-authored-by: team-tf-cdk <[email protected]>
- Loading branch information
1 parent
0236585
commit c706d95
Showing
338 changed files
with
24,751 additions
and
2,340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,48 +10,13 @@ permissions: | |
|
||
jobs: | ||
cdktfDocs: | ||
runs-on: | ||
- custom | ||
- linux | ||
- custom-linux-medium | ||
container: | ||
image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform | ||
env: | ||
CHECKPOINT_DISABLE: "1" | ||
timeout-minutes: 120 | ||
steps: | ||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "team-tf-cdk" | ||
- name: Get yarn cache directory path | ||
id: global-cache-dir-path | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 | ||
id: global-cache | ||
with: | ||
path: ${{ steps.global-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-integration-yarn-${{ hashFiles('**/yarn.lock') }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0 | ||
with: | ||
node-version: "18.x" | ||
- name: Install cdktf-registry-docs | ||
run: npm install -g [email protected] | ||
- name: Run conversion | ||
run: | | ||
cdktf-registry-docs convert \ | ||
--files='*/ec2_*.html.markdown' \ | ||
--languages='typescript,python' \ | ||
--parallel-file-conversions=1 \ | ||
--provider-from-registry="hashicorp/aws" \ | ||
. | ||
env: | ||
TF_PLUGIN_CACHE_DIR: ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 | ||
with: | ||
commit-message: "docs: update cdktf documentation" | ||
title: "docs: update cdktf documentation" | ||
body: "This PR updates the cdktf related documentation based on the current HCL-based documentation. It is automatically created by the cdktf-documentation GitHub action." | ||
token: ${{ secrets.ORGSCOPED_GITHUB_TOKEN }} | ||
uses: hashicorp/terraform-cdk/.github/workflows/registry-docs-pr-based.yml@304e2507209c9657135dc7b4b7ee68030327468f | ||
secrets: | ||
GH_PR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
providerFqn: "hashicorp/aws" | ||
files: "*/ec2*.html.markdown,*/lambda*.html.markdown,*/eks*.html.markdown,*/vpc*.html.markdown,*/instance.html.markdown" | ||
languages: "typescript,python" | ||
parallelFileConversions: 1 | ||
maxRunners: 20 | ||
cdktfRegistryDocsVersion: "1.14.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.