File tree Expand file tree Collapse file tree 4 files changed +366
-36
lines changed Expand file tree Collapse file tree 4 files changed +366
-36
lines changed Original file line number Diff line number Diff line change 18
18
19
19
- name : Install Python
20
20
uses : actions/setup-python@v2
21
+ with :
22
+ python-version : ' 3.8'
23
+ architecture : ' x64'
21
24
22
25
- name : Build matrix
23
26
id : matrix
40
43
41
44
- name : Install Python
42
45
uses : actions/setup-python@v2
46
+ with :
47
+ python-version : ' 3.8'
48
+ architecture : ' x64'
43
49
44
50
- name : Terraform min/max versions
45
51
id : minMax
55
61
- name : Install pre-commit dependencies
56
62
run : pip install pre-commit
57
63
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
-
70
64
71
65
# Max Terraform version
72
66
getBaseVersion :
98
92
99
93
- name : Install Python
100
94
uses : actions/setup-python@v2
95
+ with :
96
+ python-version : ' 3.8'
97
+ architecture : ' x64'
101
98
102
99
- name : Install Terraform v${{ matrix.version }}
103
100
uses : hashicorp/setup-terraform@v1
@@ -108,7 +105,7 @@ jobs:
108
105
run : |
109
106
pip install pre-commit
110
107
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/
112
109
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/
113
110
114
111
- name : Execute pre-commit
Original file line number Diff line number Diff line change
1
+ name : Bump version
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v2
11
+ - name : Bump version and push tag
12
+ id : tag_version
13
+ uses : mathieudutour/github-tag-action@v6.0
14
+ with :
15
+ github_token : ${{ secrets.GITHUB_TOKEN }}
16
+
17
+ - name : Create a GitHub release
18
+ uses : ncipollo/release-action@v1
19
+ with :
20
+ tag : ${{ steps.tag_version.outputs.new_tag }}
21
+ name : Release ${{ steps.tag_version.outputs.new_tag }}
22
+ body : ${{ steps.tag_version.outputs.changelog }}
Original file line number Diff line number Diff line change @@ -79,5 +79,136 @@ _testmain.go
79
79
/test /run.out
80
80
/test /times.out
81
81
82
- # ignore test file(s)
83
- ** test **
82
+ # Python
83
+ # Editors
84
+ .vscode /
85
+ .idea /
86
+
87
+ # Vagrant
88
+ .vagrant /
89
+
90
+ # Mac/OSX
91
+ .DS_Store
92
+
93
+ # Windows
94
+ Thumbs.db
95
+
96
+ # Source for the following rules: https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
97
+ # Byte-compiled / optimized / DLL files
98
+ __pycache__ /
99
+ * .py [cod ]
100
+ * $py.class
101
+
102
+ # C extensions
103
+ * .so
104
+
105
+ # Distribution / packaging
106
+ .Python
107
+ build /
108
+ develop-eggs /
109
+ dist /
110
+ downloads /
111
+ eggs /
112
+ .eggs /
113
+ lib /
114
+ lib64 /
115
+ parts /
116
+ sdist /
117
+ var /
118
+ wheels /
119
+ * .egg-info /
120
+ .installed.cfg
121
+ * .egg
122
+ MANIFEST
123
+
124
+ # PyInstaller
125
+ # Usually these files are written by a python script from a template
126
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
127
+ * .manifest
128
+ * .spec
129
+
130
+ # Installer logs
131
+ pip-log.txt
132
+ pip-delete-this-directory.txt
133
+
134
+ # Unit test / coverage reports
135
+ htmlcov /
136
+ .tox /
137
+ .nox /
138
+ .coverage
139
+ .coverage. *
140
+ .cache
141
+ nosetests.xml
142
+ coverage.xml
143
+ * .cover
144
+ .hypothesis /
145
+ .pytest_cache /
146
+
147
+ # Translations
148
+ * .mo
149
+ * .pot
150
+
151
+ # Django stuff:
152
+ * .log
153
+ local_settings.py
154
+ db.sqlite3
155
+
156
+ # Flask stuff:
157
+ instance /
158
+ .webassets-cache
159
+
160
+ # Scrapy stuff:
161
+ .scrapy
162
+
163
+ # Sphinx documentation
164
+ docs /_build /
165
+
166
+ # PyBuilder
167
+ target /
168
+
169
+ # Jupyter Notebook
170
+ .ipynb_checkpoints
171
+
172
+ # IPython
173
+ profile_default /
174
+ ipython_config.py
175
+
176
+ # pyenv
177
+ .python-version
178
+
179
+ # celery beat schedule file
180
+ celerybeat-schedule
181
+
182
+ # SageMath parsed files
183
+ * .sage.py
184
+
185
+ # Environments
186
+ .env
187
+ .venv
188
+ env /
189
+ venv /
190
+ ENV /
191
+ env.bak /
192
+ venv.bak /
193
+
194
+ # Spyder project settings
195
+ .spyderproject
196
+ .spyproject
197
+
198
+ # Rope project settings
199
+ .ropeproject
200
+
201
+ # mkdocs documentation
202
+ /site
203
+
204
+ # mypy
205
+ .mypy_cache /
206
+ .dmypy.json
207
+ dmypy.json
208
+
209
+ # ignore test related file(s)
210
+ ** /test **
211
+ ** .
212
+
213
+ # ignore terraform external modules
214
+ ** /.external_modules
You can’t perform that action at this time.
0 commit comments