Skip to content

Commit 078894f

Browse files
fix: update module structure and github workflows
1 parent 13f4754 commit 078894f

26 files changed

+611
-264
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# These owners will be the default owners for everything in the repo.
2+
@terraform-do-modules/approvers @clouddrove-ci @anmolnagpal

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## what
2+
* Describe high-level what changed as a result of these commits (i.e. in plain-english, what do these changes mean?)
3+
* Use bullet points to be concise and to the point.
4+
5+
## why
6+
* Provide the justifications for the changes (e.g. business case).
7+
* Describe why these changes were made (e.g. why do these commits fix the problem?)
8+
* Use bullet points to be concise and to the point.
9+
10+
## references
11+
* Link to any supporting jira issues or helpful documentation to add some context (e.g. stackoverflow).
12+
* Use `closes #123`, if this PR closes a Jira issue `#123`

.github/dependabot.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "terraform" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
# Add assignees
13+
assignees:
14+
- "clouddrove-ci"
15+
# Add reviewer
16+
reviewers:
17+
- "approvers"
18+
- package-ecosystem: "terraform" # See documentation for possible values
19+
directory: "_examples/complete" # Location of package manifests
20+
schedule:
21+
interval: "weekly"
22+
# Add assignees
23+
assignees:
24+
- "clouddrove-ci"
25+
# Add reviewer
26+
reviewers:
27+
- "approvers"

.github/workflows/auto_assignee.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Auto Assign PRs
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
workflow_dispatch:
8+
jobs:
9+
assign-pr:
10+
uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@master
11+
secrets:
12+
GITHUB: ${{ secrets.GITHUB }}
13+
with:
14+
assignees: 'clouddrove-ci'

.github/workflows/changelog.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: changelog
2+
permissions: write-all
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
workflow_dispatch:
8+
jobs:
9+
changelog:
10+
uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master
11+
secrets:
12+
GITHUB: ${{ secrets.GITHUB }}
13+
with:
14+
branch: 'master'

.github/workflows/readme.todo

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/readme.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: 'Create README.md file'
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
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@v2
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()

.github/workflows/terraform.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/terratest.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/tf-checks.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tf-checks
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-static-checks:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
10+
with:
11+
working_directory: './_examples/complete/'

0 commit comments

Comments
 (0)