Skip to content

Commit

Permalink
fix: update workflow latest version and change _example name (#74)
Browse files Browse the repository at this point in the history
* fix: update workflow latest version and change _example name

* feat- update path

* feat- added path for ignore file in GHA

---------

Co-authored-by: Vishwajit Nagulkar <119565952+VishwajitNagulkar@users.noreply.github.com>
  • Loading branch information
theprashantyadav and VishwajitNagulkar authored Apr 25, 2024
1 parent 361c9c5 commit bd73f8f
Show file tree
Hide file tree
Showing 33 changed files with 97 additions and 126 deletions.
18 changes: 9 additions & 9 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 All @@ -129,4 +129,4 @@ updates:
reviewers:
- "approvers"
# Allow up to 3 open pull requests for pip dependencies
open-pull-requests-limit: 3
open-pull-requests-limit: 3
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:
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 }}
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/tf-checks.yml@1.2.4
with:
working_directory: './_example/complete/'
working_directory: './examples/complete/'
tf-checks-cors_s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/cors_s3/'
working_directory: './examples/cors_s3/'
tf-checks-default-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/default-s3/'
working_directory: './examples/default-s3/'
tf-checks-encryption-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/encryption-s3/'
working_directory: './examples/encryption-s3/'
tf-checks-logging-encryption-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
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/tf-checks.yml@1.2.4
with:
working_directory: './_example/logging-s3/'
working_directory: './examples/logging-s3/'
tf-checks-s3-replication-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/s3-replication/'
working_directory: './examples/s3-replication/'
tf-checks-website-s3-example:
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4
with:
working_directory: './_example/website-s3/'
working_directory: './examples/website-s3/'
23 changes: 16 additions & 7 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,28 @@ 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
# description of this project
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.

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: |-
Here are some examples of how you can use this module in your inventory structure:
Expand Down
11 changes: 0 additions & 11 deletions _example/logging-encryption-s3/versions.tf

This file was deleted.

11 changes: 0 additions & 11 deletions _example/logging-s3/versions.tf

This file was deleted.

11 changes: 0 additions & 11 deletions _example/s3-replication/versions.tf

This file was deleted.

11 changes: 0 additions & 11 deletions _example/website-s3/versions.tf

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.5.5"
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.13.1"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions _example/cors_s3/versions.tf → examples/cors_s3/versions.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.5.5"
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.13.1"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.5.5"
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.13.1"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.5.5"
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.13.1"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions examples/logging-encryption-s3/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions examples/logging-s3/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions examples/s3-replication/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.31.0"
}
}
}
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions examples/website-s3/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Terraform version
terraform {
required_version = ">= 1.6.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.31.0"
}
}
}
Loading

0 comments on commit bd73f8f

Please sign in to comment.