From f623a50f5c2d3dfc15aaabb479589cc1a3205b59 Mon Sep 17 00:00:00 2001 From: Nicolai Antiferov Date: Sat, 27 Jan 2024 21:57:28 +0200 Subject: [PATCH] Fix dynamodb_table backend parameter * Fix dynamodb_table backend parameter * Add terraform-docs wrapper * Update GH workflow actions versions --- .github/workflows/lint.yaml | 6 ++++-- config.yaml | 2 +- tasks.py | 10 +++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index df8cd4f..289a6e1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,9 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Lint Code Base - uses: github/super-linter/slim@v4 + uses: super-linter/super-linter/slim@v5 env: + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_JSCPD: false diff --git a/config.yaml b/config.yaml index 641efd4..bd32d08 100644 --- a/config.yaml +++ b/config.yaml @@ -2,7 +2,7 @@ init: s3: bucket: terraform-state - dynamodb: terraform-lock + dynamodb_table: terraform-lock region: us-east-1 profile: default arch: diff --git a/tasks.py b/tasks.py index 6a87201..5e995d6 100644 --- a/tasks.py +++ b/tasks.py @@ -1,4 +1,4 @@ -"""invoke-terraform helpers v0.7""" +"""invoke-terraform helpers v0.8""" from glob import glob from os import getcwd, path @@ -158,3 +158,11 @@ def diff(c): print("Changed in this branch:") for i in r.index.diff("origin/main", R=True): print(f"File: {i.a_path}, change: {change.get(i.change_type, i.change_type)}") + + +@task +def docs(c): + """ + terraform-docs wrapper + """ + c.run("terraform-docs markdown . > README.md")