Skip to content

Commit

Permalink
feat: updated example path and readme paramters (#32)
Browse files Browse the repository at this point in the history
* 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 <119565952+VishwajitNagulkar@users.noreply.github.com>
  • Loading branch information
Tanveer143s and VishwajitNagulkar committed Apr 24, 2024
1 parent 41f6d5c commit b02624c
Show file tree
Hide file tree
Showing 13 changed files with 59 additions and 60 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ updates:
open-pull-requests-limit: 3

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

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/_example/complete" # Location of package manifests
directory: "/examples/complete" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
Expand Down
58 changes: 10 additions & 48 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,15 @@
name: 'Create README.md file'
name: Readme Workflow
on:
push:
branches:
- master

paths-ignore:
- 'README.md'
- 'docs/**'
workflow_dispatch:
jobs:
readme-create:
name: 'readme-create'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master

- name: 'Set up Python 3.7'
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: 'create readme'
uses: 'clouddrove/github-actions@9.0.3'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'pre-commit check errors'
uses: pre-commit/action@v3.0.1
continue-on-error: true

- name: 'pre-commit fix erros'
uses: pre-commit/action@v3.0.1
continue-on-error: true

- name: 'push readme'
uses: 'clouddrove/github-actions@9.0.3'
continue-on-error: true
with:
actions_subcommand: 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
README:
uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@1.2.4
secrets:
TOKEN : ${{ secrets.GITHUB }}
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}
6 changes: 3 additions & 3 deletions .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
individual:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/individual/'
working_directory: './examples/individual/'
master:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/master/'
working_directory: './examples/master/'
member:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/member/'
working_directory: './examples/member/'
51 changes: 44 additions & 7 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,57 @@ github_repo: clouddrove/terraform-aws-cloudtrail-baseline

# Badges to display
badges:
- name: "Terraform"
image: "https://img.shields.io/badge/Terraform-v0.14-green"
url: "https://www.terraform.io"
- name: "Latest Release"
image: "https://img.shields.io/github/release/clouddrove//terraform-aws-cloudtrail-baseline.svg"
url: "https://github.com/clouddrove//terraform-aws-cloudtrail-baseline/releases/latest"
- name: "tfsec"
image: "https://github.com/clouddrove//terraform-aws-cloudtrail-baseline/actions/workflows/tfsec.yml/badge.svg"
url: "https://github.com/clouddrove//terraform-aws-cloudtrail-baseline/actions/workflows/tfsec.yml"
- name: "Licence"
image: "https://img.shields.io/badge/License-MIT-blue.svg"
image: "https://img.shields.io/badge/License-APACHE-blue.svg"
url: "LICENSE.md"
- name: "Changelog"
image: "https://img.shields.io/badge/Changelog-blue"
url: "CHANGELOG.md"


prerequesties:
- name: Terraform
url: https://learn.hashicorp.com/terraform/getting-started/install.html
version: ">= 1.6.6"

providers:
- name: aws
url: https://aws.amazon.com/
version: ">= 5.31.0"

module_dependencies:
- name: Labels module
url: https://github.com/clouddrove/terraform-aws-labels
description: Provides resource tagging.

- name: S3 bucket module
url: git::https://github.com/clouddrove/terraform-aws-s3.git?ref=tags/2.0.0
description: Provides resource tagging.

- name: kms-key module
url: git::https://github.com/clouddrove/terraform-aws-kms.git?ref=tags/1.3.1
description: Provides resource tagging.

- name: cloudtrial module
url: https://github.com/clouddrove/terraform-aws-cloudtrail-baseline
description: Provides resource tagging.

- name: cloudtrail-slack-notification module
url: https://github.com/clouddrove/terraform-aws-cloudtrail-slack-notification
description: Provides resource tagging.


# description of this project
description: |-
Terraform module to create an cloudtrail resource on AWS with S3 and KMS key.
# extra content
include:
- "terraform.md"
# How to use this project
usage : |-
Expand Down
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 comments on commit b02624c

Please sign in to comment.