Skip to content

Commit b42a450

Browse files
vedkopsHitman
andauthored
Fix: Added Latest Version and Removed Depreciated Variables (#10)
* Added Latest Version and Removed Depreciated Variables * Added Formmating * Added min required Azurerm Version * Updates Github Workflow * Renamed Folder * Fixed Warnings * Removed Unused Variables --------- Co-authored-by: Hitman <Hiitman@Hitman>
1 parent 9599c56 commit b42a450

15 files changed

+82
-215
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ updates:
1010
schedule:
1111
interval: "weekly"
1212
- package-ecosystem: "terraform" # See documentation for possible values
13-
directory: "_example" # Location of package manifests
13+
directory: "examples" # Location of package manifests
1414
schedule:
1515
interval: "weekly"
1616

.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+
assignee:
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/automerge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
name: Auto merge
3+
on:
4+
pull_request:
5+
jobs:
6+
auto-merge:
7+
uses: clouddrove/github-shared-workflows/.github/workflows/auto_merge.yml@master
8+
secrets:
9+
GITHUB: ${{ secrets.GITHUB }}
10+
with:
11+
tfcheck: 'basic / Check code format'
12+

.github/workflows/readme.yml

Lines changed: 10 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +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@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-
29-
- name: 'pre-commit check errors'
30-
uses: pre-commit/[email protected]
31-
continue-on-error: true
32-
33-
- name: 'pre-commit fix erros'
34-
uses: pre-commit/[email protected]
35-
continue-on-error: true
36-
37-
- name: 'push readme'
38-
uses: 'clouddrove/[email protected]'
39-
continue-on-error: true
40-
with:
41-
actions_subcommand: 'push'
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
45-
- name: 'Slack Notification'
46-
uses: clouddrove/action-slack@v2
47-
with:
48-
status: ${{ job.status }}
49-
fields: repo,author
50-
author_name: 'CloudDrove'
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
53-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
54-
if: always()
11+
README:
12+
uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@master
13+
secrets:
14+
TOKEN : ${{ secrets.GITHUB }}
15+
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}

.github/workflows/semantic-releaser.yml

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

.github/workflows/static-checks.yml

Lines changed: 0 additions & 73 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-checks-aws-managed-example:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master
10+
with:
11+
working_directory: './examples/'

.github/workflows/tflint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tf-lint
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
workflow_dispatch:
7+
jobs:
8+
tf-lint:
9+
uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master
10+
secrets:
11+
GITHUB: ${{ secrets.GITHUB }}

_example/example.tf renamed to examples/example.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
provider "azurerm" {
22
features {}
3+
subscription_id = "<subscription-id>"
34
}
45

56
module "resource_group" {
File renamed without changes.

0 commit comments

Comments
 (0)