tfvdc-actions
A simple gh-actions to make sure that the variable contains a description
Features
- Warning if a variable block has not
description
field. - Comment to pull request using reviewdog.
Usage
- uses: tsubasaogawa/tfvdc-actions@v1
with:
input_path: ${{ github.workspace }}
result_path: ${{ github.workspace }}/tfvdc.out
- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd ${{ github.workspace }}
cat ${{ github.workspace }}/tfvdc.out | reviewdog -reporter=github-pr-review -f=golint
Inputs
Name | Description | Default |
---|---|---|
input_path | Input directory path contains Terraform variable blocks | . |
result_path | Result file path | ~/tfvdc.out |