Skip to content

Commit 4cf0d9a

Browse files
committed
update readme.yml pipeline and version
1 parent ace6784 commit 4cf0d9a

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

.github/workflows/readme.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,38 @@ jobs:
1717
with:
1818
python-version: '3.x'
1919

20-
- name: 'Install test dependencies.'
21-
run: pip install yamllint
22-
23-
- name: Run yamllint.
24-
run: yamllint ./README.yaml
25-
26-
- name: clone Genie repo
27-
run: |
28-
export GITHUB_ACCESS_TOKEN=${{ secrets.GITHUB }}
29-
cd .. && cd .. && cd ..
30-
git clone https://${{ secrets.GITHUB }}@github.com/clouddrove/genie.git
31-
cd /home/runner/work/terraform-aws-security-group/terraform-aws-security-group
32-
make packages/install/gomplate
33-
make readme
34-
- name: push to repo back
35-
run: |
36-
git config --global user.email "anmol@clouddrove.com"
37-
git config --global user.name "Anmol nagpal"
38-
git add . && git commit -m "upload"
39-
git push origin master
20+
- name: 'create readme'
21+
uses: 'clouddrove/github-actions@v4.0'
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@v4.0'
39+
continue-on-error: true
40+
with:
41+
actions_subcommand: 'push'
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
4044

4145
- name: 'Slack Notification'
4246
uses: clouddrove/action-slack@v2
4347
with:
4448
status: ${{ job.status }}
4549
fields: repo,author
46-
author_name: 'Clouddrove'
50+
author_name: 'CloudDrove'
4751
env:
4852
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
4953
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
50-
if: always()
54+
if: always()

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
repos:
22
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.12.0
3+
rev: v1.43.0
44
hooks:
55
- id: terraform_fmt
66

77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v2.0.0
8+
rev: v3.2.0
99
hooks:
1010
- id: check-merge-conflict
11-
- id: trailing-whitespace
1211
- id: check-yaml
1312
- id: check-added-large-files
13+
- id: trailing-whitespace

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Terraform version
22
terraform {
3-
required_version = ">= 0.13"
3+
required_version = ">= 0.12.0, < 0.14.0"
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"

0 commit comments

Comments
 (0)