Skip to content

Commit 46247ae

Browse files
authored
Merge pull request #25 from tomarv2/develop
Develop
2 parents 7412383 + b07d2f2 commit 46247ae

File tree

2 files changed

+52
-13
lines changed

2 files changed

+52
-13
lines changed

.github/workflows/onrelease.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
name: release
8+
9+
jobs:
10+
generate-changelog:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- uses: BobAnkh/auto-generate-changelog@master
17+
with:
18+
REPO_NAME: ''
19+
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
20+
BRANCH: ''
21+
PATH: 'CHANGELOG.md'
22+
COMMIT_MESSAGE: 'docs(CHANGELOG): update release notes'
23+
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements'
24+
build:
25+
name: Create Release
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
31+
- name: Create Release
32+
id: create_release
33+
uses: actions/create-release@v1
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
tag_name: ${{ github.ref }}
38+
release_name: Release ${{ github.ref }}
39+
body: |
40+
Release for version ${{ github.ref }}. Please check CHANGELOG.md for more information.
41+
draft: false
42+
prerelease: false

.github/workflows/pre-commit.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818

1919
- name: Install Python
2020
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.8'
23+
architecture: 'x64'
2124

2225
- name: Build matrix
2326
id: matrix
@@ -40,6 +43,9 @@ jobs:
4043

4144
- name: Install Python
4245
uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.8'
48+
architecture: 'x64'
4349

4450
- name: Terraform min/max versions
4551
id: minMax
@@ -55,18 +61,6 @@ jobs:
5561
- name: Install pre-commit dependencies
5662
run: pip install pre-commit
5763

58-
# - name: Execute pre-commit
59-
# # Run only validate pre-commit check on min version supported
60-
# if: ${{ matrix.directory != '.' }}
61-
# run:
62-
# pre-commit run terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*
63-
#
64-
# - name: Execute pre-commit
65-
# # Run only validate pre-commit check on min version supported
66-
# if: ${{ matrix.directory == '.' }}
67-
# run:
68-
# pre-commit run terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)
69-
7064

7165
# Max Terraform version
7266
getBaseVersion:
@@ -98,6 +92,9 @@ jobs:
9892

9993
- name: Install Python
10094
uses: actions/setup-python@v2
95+
with:
96+
python-version: '3.8'
97+
architecture: 'x64'
10198

10299
- name: Install Terraform v${{ matrix.version }}
103100
uses: hashicorp/setup-terraform@v1
@@ -108,7 +105,7 @@ jobs:
108105
run: |
109106
pip install pre-commit
110107
pip install checkov
111-
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v0.12.1-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
108+
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v1.0.1-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
112109
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
113110
114111
- name: Execute pre-commit

0 commit comments

Comments
 (0)