Skip to content

Commit

Permalink
feat: updated example path and readme paramters
Browse files Browse the repository at this point in the history
  • Loading branch information
VishwajitNagulkar authored Apr 12, 2024
1 parent 361c9c5 commit 273be2e
Show file tree
Hide file tree
Showing 28 changed files with 41 additions and 69 deletions.
16 changes: 8 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 All @@ -41,7 +41,7 @@ updates:
open-pull-requests-limit: 3

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

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

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

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

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

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

- package-ecosystem: "terraform" # See documentation for possible values
directory: "/_example/website-s3" # Location of package manifests
directory: "/examples/website-s3" # Location of package manifests
schedule:
interval: "weekly"
# Add assignees
Expand Down
57 changes: 9 additions & 48 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,14 @@
name: 'Create README.md file'
name: Readme Workflow
on:
push:
branches:
- master
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
readme:
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/[email protected]'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: 'pre-commit check errors'
uses: pre-commit/[email protected]
continue-on-error: true

- name: 'pre-commit fix erros'
uses: pre-commit/[email protected]
continue-on-error: true

- name: 'push readme'
uses: 'clouddrove/[email protected]'
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/[email protected]
secrets:
TOKEN : ${{ secrets.GITHUB }}
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}
16 changes: 8 additions & 8 deletions .github/workflows/tf-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ jobs:
tf-checks-complete-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/complete/'
working_directory: './examples/complete/'
tf-checks-cors_s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/cors_s3/'
working_directory: './examples/cors_s3/'
tf-checks-default-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/default-s3/'
working_directory: './examples/default-s3/'
tf-checks-encryption-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/encryption-s3/'
working_directory: './examples/encryption-s3/'
tf-checks-logging-encryption-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/logging-encryption-s3/'
working_directory: './examples/logging-encryption-s3/'
tf-checks-logging-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/logging-s3/'
working_directory: './examples/logging-s3/'
tf-checks-s3-replication-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/s3-replication/'
working_directory: './examples/s3-replication/'
tf-checks-website-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
with:
working_directory: './_example/website-s3/'
working_directory: './examples/website-s3/'
21 changes: 16 additions & 5 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,29 @@ badges:
- name: "Licence"
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 1.5.3
- name: Terraform
url: https://learn.hashicorp.com/terraform/getting-started/install.html
version: ">= 1.5.5"

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

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

# description of this project
description: |-
Terraform module to create default S3 bucket with logging and encryption type specific features.
# extra content
include:
- "terraform.md"

# How to use this project
# 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.
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.
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 273be2e

Please sign in to comment.