Skip to content

Commit c804e97

Browse files
authored
Merge pull request #30 from clouddrove/fix/rename-files
fix:renamed _examples to examples and referenced it
2 parents 551219c + 9c39dad commit c804e97

File tree

14 files changed

+58
-58
lines changed

14 files changed

+58
-58
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ updates:
1010
schedule:
1111
interval: "weekly"
1212
- package-ecosystem: "terraform" # See documentation for possible values
13-
directory: "_example/basic" # Location of package manifests
13+
directory: "examples/basic" # Location of package manifests
1414
schedule:
1515
interval: "weekly"
1616
- package-ecosystem: "terraform" # See documentation for possible values
17-
directory: "_example/complete" # Location of package manifests
17+
directory: "examples/complete" # Location of package manifests
1818
schedule:
1919
interval: "weekly"
2020
- package-ecosystem: "terraform" # See documentation for possible values
21-
directory: "_example/mysql-flexible-server-replication" # Location of package manifests
21+
directory: "examples/mysql-flexible-server-replication" # Location of package manifests
2222
schedule:
2323
interval: "weekly"

.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/github-actions@v9.0.2'
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/action@v2.0.0
31-
continue-on-error: true
32-
33-
- name: 'pre-commit fix erros'
34-
uses: pre-commit/action@v2.0.0
35-
continue-on-error: true
36-
37-
- name: 'push readme'
38-
uses: 'clouddrove/github-actions@v9.0.2'
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
paths:
88
- '**.tf'
9-
- '!_example/**.tf'
9+
- '!examples/**.tf'
1010

1111
jobs:
1212
release:

.github/workflows/static-checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- ${{ needs.versionExtract.outputs.minVersion }}
3131
- ${{ needs.versionExtract.outputs.maxVersion }}
3232
directory:
33-
- _example/basic
34-
- _example/complete
35-
- _example/mysql-flexible-server-replication
33+
- examples/basic
34+
- examples/complete
35+
- examples/mysql-flexible-server-replication
3636
steps:
3737
- name: Checkout
3838
uses: actions/checkout@v2
File renamed without changes.
File renamed without changes.

examples/basic/versions.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Terraform version
2+
terraform {
3+
required_version = ">= 1.7.8"
4+
}
5+
6+
terraform {
7+
required_providers {
8+
azurerm = {
9+
source = "hashicorp/azurerm"
10+
version = "3.112.0"
11+
}
12+
}
13+
}
File renamed without changes.
File renamed without changes.

examples/complete/versions.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Terraform version
2+
terraform {
3+
required_version = ">= 1.7.8"
4+
}
5+
6+
terraform {
7+
required_providers {
8+
azurerm = {
9+
source = "hashicorp/azurerm"
10+
version = "3.112.0"
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)