-
Notifications
You must be signed in to change notification settings - Fork 455
72 lines (69 loc) · 2.91 KB
/
cdktf-provider-docs-rollout.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CDKTF Provider Docs Rollout
# You can find all open PRs under https://github.com/search?q=%22cdktf%3A+update+documentation%22++author%3Ateam-tf-cdk&type=pullrequests&state=open
on:
workflow_dispatch: {}
schedule:
- cron: 0 0 * * 1 # Mondays at midnight
jobs:
cdktfDocs:
strategy:
fail-fast: false
matrix:
provider:
# To onboard new providers, add a new entry to this matrix and make sure the team-tf-cdk github user has write permissions to the repository.
- repo: hashicorp/terraform-provider-archive
fqn: "hashicorp/archive"
- repo: hashicorp/terraform-provider-aws
fqn: "hashicorp/aws"
- repo: hashicorp/terraform-provider-cloudinit
fqn: "hashicorp/cloudinit"
- repo: hashicorp/terraform-provider-dns
fqn: "hashicorp/dns"
- repo: hashicorp/terraform-provider-external
fqn: "hashicorp/external"
- repo: hashicorp/terraform-provider-http
fqn: "hashicorp/http"
additionalProviderFqns: "hashicorp/random@~>3.5"
- repo: hashicorp/terraform-provider-local
fqn: "hashicorp/local"
additionalProviderFqns: "hashicorp/aws@~>5.12"
- repo: hashicorp/terraform-provider-null
fqn: "hashicorp/null"
additionalProviderFqns: "hashicorp/aws@~>5.12"
- repo: hashicorp/terraform-provider-random
fqn: "hashicorp/random"
additionalProviderFqns: "hashicorp/aws@~>5.12"
- repo: hashicorp/terraform-provider-tfe
fqn: "hashicorp/tfe"
- repo: hashicorp/terraform-provider-time
fqn: "hashicorp/time"
additionalProviderFqns: "hashicorp/aws@~>5.12"
- repo: hashicorp/terraform-provider-tls
fqn: "hashicorp/tls"
additionalProviderFqns: "hashicorp/aws@~>5.12"
uses: ./.github/workflows/registry-docs-pr-based.yml
secrets:
# This token belongs to the team-tf-cdk github user. The user needs to have write permissions to the repository.
GH_PR_TOKEN: ${{ secrets.GH_TOKEN_CDKTF_PROVIDER_DOCUMENTATION }}
with:
repository: ${{ matrix.provider.repo }}
providerFqn: ${{ matrix.provider.fqn }}
languages: "typescript,python"
parallelFileConversions: 1
maxRunners: 20
cdktfRegistryDocsVersion: "1.16.1"
additionalProviderFqns: ${{ matrix.provider.additionalProviderFqns }}
reportFailureToSlack:
needs: cdktfDocs
runs-on: ubuntu-latest
if: failure()
steps:
- name: Send failures to Slack
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117
with:
payload: |
{
"run_url": "https://github.com/hashicorp/terraform-cdk/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.REGISTRY_DOCS_FAILURE_SLACK_WEBHOOK_URL }}