Skip to content

Commit 84d1d9e

Browse files
Merge pull request #2 from blackbird-cloud/bb-repo-manager-updates
Merge pull request 2 from bb-repo-manager-updates
2 parents 77555a9 + 9a12b48 commit 84d1d9e

File tree

6 files changed

+27
-15
lines changed

6 files changed

+27
-15
lines changed

.config/.terraform-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ sections:
1414
- modules
1515

1616
content: |-
17-
# AWS Cloudwatch OAM Terraform module
18-
A Terraform module which configures your AWS Cloudwatch OAM. Read [this](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html) page for more information.
17+
{{ include "./.config/title.md"}}
18+
1919
{{ .Header }}
2020
2121
## Example

.config/footer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Checkout our other :point_right: [terraform modules](https://registry.terraform.
66

77
## Copyright
88

9-
Copyright © 2017-2023 [Blackbird Cloud](https://www.blackbird.cloud)
9+
Copyright © 2017-2024 [Blackbird Cloud](https://blackbird.cloud)

.config/header.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[![blackbird-logo](https://raw.githubusercontent.com/blackbird-cloud/terraform-module-template/main/.config/logo_simple.png)](https://www.blackbird.cloud)
1+
[![blackbird-logo](https://raw.githubusercontent.com/blackbird-cloud/terraform-module-template/main/.config/logo_simple.png)](https://blackbird.cloud)

.config/title.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Terraform Aws Cloudwatch Oam Module
2+
Terraform module to create an AWS CloudWatch OAM

.github/workflows/format.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Validate and Format
2-
# on: push
2+
33
on:
4-
pull_request_target:
5-
types: [opened, synchronize]
4+
workflow_dispatch:
5+
# pull_request_target:
6+
# types: [opened, synchronize]
67

78
jobs:
89
format:
@@ -11,7 +12,7 @@ jobs:
1112
container: blackbirdcloud/terraform-toolkit:latest
1213
steps:
1314
- name: Checkout
14-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1516
with:
1617
repository: ${{ github.event.pull_request.head.repo.full_name }}
1718
ref: ${{ github.event.pull_request.head.ref }}
@@ -30,4 +31,4 @@ jobs:
3031
- name: Commit and push
3132
uses: EndBug/add-and-commit@v9
3233
with:
33-
default_author: github_actions
34+
default_author: github_actions

.github/workflows/readme.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1-
name: Generate terraform docs
1+
name: Generate Readme
2+
23
on:
3-
- pull_request
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
48

59
jobs:
6-
docs:
10+
generate-readme:
711
runs-on: ubuntu-latest
812
steps:
9-
- uses: actions/checkout@v3
13+
- uses: actions/create-github-app-token@v1
14+
id: app-token
1015
with:
11-
ref: ${{ github.event.pull_request.head.ref }}
12-
16+
app-id: ${{ vars.BB_REPO_MANAGER_APP_ID }}
17+
private-key: ${{ secrets.BB_REPO_MANAGER_SECRET }}
18+
- uses: actions/checkout@v4
19+
with:
20+
token: ${{ steps.app-token.outputs.token }}
1321
- name: Render terraform docs and push changes back to PR
1422
uses: terraform-docs/gh-actions@main
1523
with:
1624
working-dir: .
1725
config-file: .config/.terraform-docs.yml
1826
git-push: "true"
1927
output-method: replace
28+

0 commit comments

Comments
 (0)