Skip to content

Commit b02624c

Browse files
feat: updated example path and readme paramters (#32)
* feat: updated example path and readme paramters * feat: updated example path and readme paramters * feat- Updated Path for Ignore File --------- Co-authored-by: Vishwajit Nagulkar <[email protected]>
1 parent 41f6d5c commit b02624c

File tree

13 files changed

+59
-60
lines changed

13 files changed

+59
-60
lines changed

.github/dependabot.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ updates:
3030
open-pull-requests-limit: 3
3131

3232
- package-ecosystem: "terraform" # See documentation for possible values
33-
directory: "/_example/basic" # Location of package manifests
33+
directory: "/examples/basic" # Location of package manifests
3434
schedule:
3535
interval: "weekly"
3636
# Add assignees
@@ -43,7 +43,7 @@ updates:
4343
open-pull-requests-limit: 3
4444

4545
- package-ecosystem: "terraform" # See documentation for possible values
46-
directory: "/_example/complete" # Location of package manifests
46+
directory: "/examples/complete" # Location of package manifests
4747
schedule:
4848
interval: "weekly"
4949
# Add assignees

.github/workflows/readme.yml

+10-48
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,15 @@
1-
name: 'Create README.md file'
1+
name: Readme Workflow
22
on:
33
push:
44
branches:
55
- master
6-
6+
paths-ignore:
7+
- 'README.md'
8+
- 'docs/**'
9+
workflow_dispatch:
710
jobs:
8-
readme-create:
9-
name: 'readme-create'
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: 'Checkout'
13-
uses: actions/checkout@master
14-
15-
- name: 'Set up Python 3.7'
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: '3.x'
19-
20-
- name: 'create readme'
21-
uses: 'clouddrove/[email protected]'
22-
with:
23-
actions_subcommand: 'readme'
24-
github_token: '${{ secrets.GITHUB }}'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
28-
- name: 'pre-commit check errors'
29-
uses: pre-commit/[email protected]
30-
continue-on-error: true
31-
32-
- name: 'pre-commit fix erros'
33-
uses: pre-commit/[email protected]
34-
continue-on-error: true
35-
36-
- name: 'push readme'
37-
uses: 'clouddrove/[email protected]'
38-
continue-on-error: true
39-
with:
40-
actions_subcommand: 'push'
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
44-
- name: 'Slack Notification'
45-
uses: clouddrove/action-slack@v2
46-
with:
47-
status: ${{ job.status }}
48-
fields: repo,author
49-
author_name: 'CloudDrove'
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
52-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
53-
if: always()
11+
README:
12+
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
13+
secrets:
14+
TOKEN : ${{ secrets.GITHUB }}
15+
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}

.github/workflows/tf-checks.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
individual:
99
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
1010
with:
11-
working_directory: './_example/individual/'
11+
working_directory: './examples/individual/'
1212
master:
1313
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
1414
with:
15-
working_directory: './_example/master/'
15+
working_directory: './examples/master/'
1616
member:
1717
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
1818
with:
19-
working_directory: './_example/member/'
19+
working_directory: './examples/member/'

README.yaml

+44-7
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,57 @@ github_repo: clouddrove/terraform-aws-cloudtrail-baseline
1515

1616
# Badges to display
1717
badges:
18-
- name: "Terraform"
19-
image: "https://img.shields.io/badge/Terraform-v0.14-green"
20-
url: "https://www.terraform.io"
18+
- name: "Latest Release"
19+
image: "https://img.shields.io/github/release/clouddrove//terraform-aws-cloudtrail-baseline.svg"
20+
url: "https://github.com/clouddrove//terraform-aws-cloudtrail-baseline/releases/latest"
21+
- name: "tfsec"
22+
image: "https://github.com/clouddrove//terraform-aws-cloudtrail-baseline/actions/workflows/tfsec.yml/badge.svg"
23+
url: "https://github.com/clouddrove//terraform-aws-cloudtrail-baseline/actions/workflows/tfsec.yml"
2124
- name: "Licence"
22-
image: "https://img.shields.io/badge/License-MIT-blue.svg"
25+
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
2326
url: "LICENSE.md"
27+
- name: "Changelog"
28+
image: "https://img.shields.io/badge/Changelog-blue"
29+
url: "CHANGELOG.md"
30+
31+
32+
prerequesties:
33+
- name: Terraform
34+
url: https://learn.hashicorp.com/terraform/getting-started/install.html
35+
version: ">= 1.6.6"
36+
37+
providers:
38+
- name: aws
39+
url: https://aws.amazon.com/
40+
version: ">= 5.31.0"
41+
42+
module_dependencies:
43+
- name: Labels module
44+
url: https://github.com/clouddrove/terraform-aws-labels
45+
description: Provides resource tagging.
46+
47+
- name: S3 bucket module
48+
url: git::https://github.com/clouddrove/terraform-aws-s3.git?ref=tags/2.0.0
49+
description: Provides resource tagging.
50+
51+
- name: kms-key module
52+
url: git::https://github.com/clouddrove/terraform-aws-kms.git?ref=tags/1.3.1
53+
description: Provides resource tagging.
54+
55+
- name: cloudtrial module
56+
url: https://github.com/clouddrove/terraform-aws-cloudtrail-baseline
57+
description: Provides resource tagging.
58+
59+
- name: cloudtrail-slack-notification module
60+
url: https://github.com/clouddrove/terraform-aws-cloudtrail-slack-notification
61+
description: Provides resource tagging.
62+
2463

2564
# description of this project
2665
description: |-
2766
Terraform module to create an cloudtrail resource on AWS with S3 and KMS key.
2867
29-
# extra content
30-
include:
31-
- "terraform.md"
68+
3269
3370
# How to use this project
3471
usage : |-
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)